This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes JAXB generated enum with multipul fields? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "JAXB generated enum with multipul fields?" Watch "JAXB generated enum with multipul fields?" New topic
Author

JAXB generated enum with multipul fields?

Tim Legg
Greenhorn

Joined: Jun 09, 2009
Posts: 5
I'm trying to find a way to define a schema such that xjc will generate an enumeration with multipul fields. Is this possible?

For example I want xjc to generate an enum like this:



By default xjc enumerations defined in the schema already implement the value field, but I need to add more fields to the generated enum.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JAXB generated enum with multipul fields?
 
Similar Threads
Enums in a map
Enums (Is this the best way)?
enums do not allow access to static members within constructors and instance init blocks
Generic method in enum. Possible?
protected allowed in enum. So extending enum types possible?