wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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.
 
Don't get me started about those stupid light bulbs.
 
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?