Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » Initializing XSDSimpleTypeDefinition instances
Initializing XSDSimpleTypeDefinition instances [message #32938] Tue, 11 November 2003 13:11 Go to next message
Dennis Fuglsang is currently offline Dennis Fuglsang
Messages: 77
Registered: July 2009
Member
Ed,

Possibly you can give me some insight into the "initialization" process when
instantiating a new XSDSimpleTypeDefinition. Specifically, when I create a
new List XSDSimpleTypeDefinition (XSDVariety.LIST) I can walk through the
logic used to add a XSDWhiteSpaceFacetImpl instance to the "facets" EList.
What I do not see is where the XSDWhiteSpaceFacet is added to the
"facetContents" EList. When this XSDSimpleTypeDefinition is written out
within an XMI resource I see the reference to this XSDWhiteSpaceFacet ( e.g.
facets="/2/FirstListType;SimpleDatatype=1/XSDWhiteSpaceFacet " ) but there is
no XSDWhiteSpaceFacet within the file to resolve this reference. Shouldn't
facetContents have this XSDWhiteSpaceFacet ? Is there something I am
missing ? Do I need to preform some type of reconciliation prior to writing
out the resource?


Thanks in advance,

Dennis
Re: Initializing XSDSimpleTypeDefinition instances [message #32973 is a reply to message #32938] Tue, 11 November 2003 15:06 Go to previous message
Eclipse User
Originally posted by: merks.ca.ibm.com

Dennis,

You should be adding to facetContents directly. You should never add to the
facets because it's a computed relation. Have a look at the code in
XSDPrototypicalSchema for working examples.


dfuglsang wrote:

> Ed,
>
> Possibly you can give me some insight into the "initialization" process when
> instantiating a new XSDSimpleTypeDefinition. Specifically, when I create a
> new List XSDSimpleTypeDefinition (XSDVariety.LIST) I can walk through the
> logic used to add a XSDWhiteSpaceFacetImpl instance to the "facets" EList.
> What I do not see is where the XSDWhiteSpaceFacet is added to the
> "facetContents" EList. When this XSDSimpleTypeDefinition is written out
> within an XMI resource I see the reference to this XSDWhiteSpaceFacet ( e.g.
> facets="/2/FirstListType;SimpleDatatype=1/XSDWhiteSpaceFacet " ) but there is
> no XSDWhiteSpaceFacet within the file to resolve this reference. Shouldn't
> facetContents have this XSDWhiteSpaceFacet ? Is there something I am
> missing ? Do I need to preform some type of reconciliation prior to writing
> out the resource?
>
> Thanks in advance,
>
> Dennis
Re: Initializing XSDSimpleTypeDefinition instances [message #580708 is a reply to message #32938] Tue, 11 November 2003 15:06 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 25999
Registered: July 2009
Senior Member
Dennis,

You should be adding to facetContents directly. You should never add to the
facets because it's a computed relation. Have a look at the code in
XSDPrototypicalSchema for working examples.


dfuglsang wrote:

> Ed,
>
> Possibly you can give me some insight into the "initialization" process when
> instantiating a new XSDSimpleTypeDefinition. Specifically, when I create a
> new List XSDSimpleTypeDefinition (XSDVariety.LIST) I can walk through the
> logic used to add a XSDWhiteSpaceFacetImpl instance to the "facets" EList.
> What I do not see is where the XSDWhiteSpaceFacet is added to the
> "facetContents" EList. When this XSDSimpleTypeDefinition is written out
> within an XMI resource I see the reference to this XSDWhiteSpaceFacet ( e.g.
> facets="/2/FirstListType;SimpleDatatype=1/XSDWhiteSpaceFacet " ) but there is
> no XSDWhiteSpaceFacet within the file to resolve this reference. Shouldn't
> facetContents have this XSDWhiteSpaceFacet ? Is there something I am
> missing ? Do I need to preform some type of reconciliation prior to writing
> out the resource?
>
> Thanks in advance,
>
> Dennis
Previous Topic:Initializing XSDSimpleTypeDefinition instances
Next Topic:Allowed children of a XSDSimpleTypeDefinition
Goto Forum:
  


Current Time: Thu Aug 21 22:13:08 EDT 2014

Powered by FUDForum. Page generated in 0.09236 seconds