Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » Enumeration S.Type: How to add values?
Enumeration S.Type: How to add values? [message #567155] Mon, 07 April 2003 22:17
Eclipse UserFriend
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
Previous Topic:Null Pointer Excp when calling validate()
Next Topic:xmlns attribute without prefix in schema tag: How to?
Goto Forum:
  


Current Time: Thu Apr 25 06:24:26 GMT 2024

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

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

Back to the top