Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » SetCommand and the XSDSimpleTypeDefinition LexicalFinal attribute
SetCommand and the XSDSimpleTypeDefinition LexicalFinal attribute [message #596061] Thu, 07 July 2005 21:27
Dennis Fuglsang is currently offline Dennis FuglsangFriend
Messages: 77
Registered: July 2009
Member
I attempted to set the LexicalFinal attribute on a XSDSimpleTypeDefinition
instance using a SetCommand. Unfortunately, the command fails preparation
(SetCommand.prepare() returns false) because the string value does not match
any of the enumeration literal values for this EAttribute. The XSDSimpleTypeDefinitionItemProvider
class creates a specialized ItemPropertyDescriptor for this attribute with
the choice values representing all the various combinations of {restriction,
list, union} - "restriction", "restriction list", "restriction list union",
"restriction union", etc.. The EType for this property is XSD_SIMPLE_FINAL
which only has the enumeration values of {all, restriction, list, union}
so many of the choice values will never match the enumeration literal values
and eType.isInstance(value) checks fail. Can SetCommand not be used with
the feature? Is there a different way to set this feature value within the
Command framework?

Thanks in advance,

Dennis Fuglsang
Previous Topic:Analysing Complex Types derived by extension
Next Topic:SetCommand and the XSDSimpleTypeDefinition LexicalFinal attribute
Goto Forum:
  


Current Time: Fri Dec 19 00:03:06 GMT 2014

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

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