|[Acceleo] Ordered unbound choices / EFeatureMapEntry [message #917937]
||Thu, 20 September 2012 11:22
| Franck Malartic
Registered: September 2012
I am new to Ecore and Acceleo so I'll try my best to be clear.
I've generated a model based on an XSD containing unbound choices. The order of the elements is important.
<xs:choice maxOccurs="unbounded" minOccurs="0">
<xs:element name="A" type="AType">
<xs:element name="B" type="BType">
<xs:element name="C" type="CType">
The model contains 4 lists: one for each element types, and a list of EFeatureMapEntry named "group".
What I understand from http://www.eclipse.org/modeling/emf/docs/overviews/FeatureMap.pdf is that I shall be able to retrieve the order of the elements thanks to the "group".
Now from the acceleo module, the iteration over the group is ok with:
[for (e: EFeatureMapEntry | sample.group)]
but I don't know how to get the value from the EFeatureMapEntry object since getValue() operation seems to not be available.
So the obvious question: is it possible, and if so, how ?
Thanks for your help,
Powered by FUDForum
. Page generated in 0.02348 seconds