|[Acceleo] How to access list element? [message #630627]
||Mon, 04 October 2010 12:42
| Tianfu Ma
Registered: October 2010
Sorry for such a newbie question. I have spent a lot of time on Acceleo user guide, wiki and examples but still cannot figure it out.|
I have created an ecore model and used it to create some sample models and validated them all. Now I want to generate some code from the model.
In the template file, when I type an element name and dot (.), the content assistant pops-up.
1) I cannot find the get/set method defined in ecore genmodel file, instead, the name of elements (EReference, EAttribute etc.) are listed, but what are their types?
2) Some element has the multiplicity. How could I get it? for example a component element contains 0..* connection element, and the EReference is named as Connections, how could I know how many connection element are there (in the diagram).
Thanks in advance.
Powered by FUDForum
. Page generated in 0.01856 seconds