Embedded lists in xml schema [message #594623] |
Mon, 23 October 2006 19:57 |
Eclipse User |
|
|
|
Originally posted by: jmprimeau.gmail.com
Hi,
I'm generating an emf model from an xsd model and would like emf to
generate interfaces that have simple accessors for list members.
For instance, in the following model, the Children element is nothing more
than a list, I don't necessarely want a full class for it, It would be
sufficient to get:
public List getChildren();
public void addChild();
public void removeChild(Object child_);
Or something along those lines...
This is also causing problems with the genarated editor, in that I do not
want to explicitely have to create a Children node, i'd like to simply
create Child and Ref nodes from the parent.
Thanks
Jean-Marc Primeau
My model looks something like this:
<element name="Parent">
<complexType>
<sequence>
<element name="Children">
<complexType>
<sequence minOccurs="0" maxOccurs="unbounded">
<choice>
<element name="Child" type="simple:ChildType"/>
<element name="Ref" type="simple:ChildType"/>
</choice>
</sequence>
</complexType>
</element>
</sequence>
</complexType>
</element>
Which would give me xml that looks something like this:
<Parent>
<Children>
<Child name="" />
<Child name="" />
<Ref path="" />
</Children>
</Parent>
|
|
|
Powered by
FUDForum. Page generated in 0.03154 seconds