Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Embedded lists in xml schema
Embedded lists in xml schema [message #594623] Mon, 23 October 2006 19:57
Eclipse UserFriend
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>
Previous Topic:[teneo] Exception when using Enums
Next Topic:Support EMF custom EDataTypes
Goto Forum:
  


Current Time: Fri Apr 26 18:28:26 GMT 2024

Powered by FUDForum. Page generated in 0.03154 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top