Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » Allowed children of a XSDSimpleTypeDefinition
Allowed children of a XSDSimpleTypeDefinition [message #580723] Wed, 12 November 2003 17:25
Dennis Fuglsang is currently offline Dennis FuglsangFriend
Messages: 77
Registered: July 2009

I am a little confused (again :-) about a piece of logic in
XSDSimpleTypeDefinitionItemProvider.collectNewChildDescripto rs(...). The
logic, shown below, adds a new child descriptor to the list regardless of
whether canAccomodateFacet(std,facet) returns true or false. Reading the
javadoc for canAccomodateFacet(...) it seems that if this method returns
false then the simple datatype cannot accomodate the given constraining
facet and should not even be returned as a permissible child. Should it be
creating a CommandParameter instance with a null feature reference?

// facets
for (Iterator i = validFacets.iterator(); i.hasNext(); )
XSDConstrainingFacet facet =

(XSDConstrainingFacet)xsdFactory.create((EClass)xsdPackage.g etEClassifier(fo
feature = !canAccomodateFacet(std, facet) ? null : <<<<<
newChildDescriptors.add(createChildParameter(feature, facet));


Previous Topic:Initializing XSDSimpleTypeDefinition instances
Next Topic:Allowed children of a XSDSimpleTypeDefinition
Goto Forum:

Current Time: Sun Aug 09 18:48:48 GMT 2020

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

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

Back to the top