|
|
|
Re: EMF Serialization of collection [message #1801568 is a reply to message #1801563] |
Tue, 22 January 2019 17:30 |
|
With an ExtendedMetaData annotation you can control what XML element name should be used for a feature. Here's an example:
<eClassifiers xsi:type="ecore:EClass" name="SetupTaskContainer" abstract="true"
eSuperTypes="../../org.eclipse.oomph.base/model/Base.ecore#//ModelElement">
<eStructuralFeatures xsi:type="ecore:EReference" name="setupTasks" upperBound="-1"
eType="#//SetupTask" containment="true">
<eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="setupTask"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
I doubt that there's a declarative way to create the intermediate <children> node.
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
|
Powered by
FUDForum. Page generated in 0.03855 seconds