SetCommand and the XSDSimpleTypeDefinition LexicalFinal attribute [message #596061] |
Thu, 07 July 2005 21:27 |
Dennis Fuglsang 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
|
|
|
Powered by
FUDForum. Page generated in 0.02686 seconds