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

alesj do-not-reply at jboss.com
Tue Mar 18 08:06:55 EDT 2008


"adrian at jboss.org" wrote : 
  | 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.
So in this case it would be illegal to use @JBossXmlEnum(ignoreCase=true) or just ignored?
Who makes sure "1" is passed into EVA::cast as an Integer?

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

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



More information about the jboss-dev-forums mailing list