Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » Initializing XSDSimpleTypeDefinition instances
Initializing XSDSimpleTypeDefinition instances [message #32938] Tue, 11 November 2003 18:11 Go to next message
Dennis Fuglsang is currently offline Dennis FuglsangFriend
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 20:06 Go to previous message
Eclipse UserFriend
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 20:06 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
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


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Initializing XSDSimpleTypeDefinition instances
Next Topic:Allowed children of a XSDSimpleTypeDefinition
Goto Forum:
  


Current Time: Fri Apr 19 09:34:49 GMT 2024

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

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

Back to the top