Enumeration S.Type: How to add values? [message #567155] |
Mon, 07 April 2003 22:17 |
Eclipse User |
|
|
|
Originally posted by: dirk.schesmer.divos.de
Hi there,
I'm a newbee in this group and would like to learn about how to add value to
an <<Enumeration>> Simple Type like the S.T. Status: available, negotaiting,
sold (taken from the Car example in Mastering XMI)
I know how to do it using the XMIFramework, but how to add values using
EMF/XSD (this indeed sooo much more powerful framework!)
XSDPrototypicalSchema.java just show me how to add the first enum value, but
what about more of them ?
XSDEnumerationFacet xsdEnumerationFacet =
xsdFactory.createXSDEnumerationFacet();
xsdEnumerationFacet.setLexicalValue("unknown");
Thanks for help,
Dirk V. Schesmer
|
|
|
Powered by
FUDForum. Page generated in 0.02598 seconds