aspose file tools*
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 Java 8 in Action this week in the Java 8 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
protected allowed in enum. So extending enum types possible?
Enums in a map
enums do not allow access to static members within constructors and instance init blocks
Generic method in enum. Possible?
Enums (Is this the best way)?