|Re: Initializing XSDSimpleTypeDefinition instances [message #32973 is a reply to message #32938]
||Tue, 11 November 2003 20:06
Originally posted by: merks.ca.ibm.com|
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.
> 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,
Powered by FUDForum
. Page generated in 0.02116 seconds