This week's book giveaway is in the Agile forum.
We're giving away four copies of Head First Agile and have Andrew Stellman & Jennifer Greene on-line!
See this thread for details.
Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JAXB generated enum with multipul fields?  RSS feed

Tim Legg
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
Boost this thread!