Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JAXB generated enum with multipul fields?

 
Tim Legg
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic