[jboss-dev-forums] [Design of JBossXB] - Re: Extending EnumValueAdapter

adrian@jboss.org do-not-reply at jboss.com
Tue Mar 18 07:30:59 EDT 2008


"alesj" wrote : "adrian at jboss.org" wrote : 
  |   | Would mean that "one" in the xml gets translated to the ONE enum value.
  | And where does that '1' get used?
  | OK, no need to answer, I'll use 'Suck it and see' principle. ;-)

It doesn't. The "1" gets used if you do this:


  | @XmlEnum(Integer.class)
  | public enum Numbers
  | {
  |    ONE(1)
  | }
  | 

i.e. a "1" in the xml maps to the ONE enum value.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4137370#4137370

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4137370



More information about the jboss-dev-forums mailing list