Initializing XSDSimpleTypeDefinition instances [message #32938] |
Tue, 11 November 2003 13:11  |
Eclipse User |
|
|
|
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  |
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03100 seconds