"alesj" wrote : "adrian(a)jboss.org" wrote :
| | You don't need to code this yourself. Just add @XmlEnumValues to the enum
class.
| | JBoss/AXB already knows how to parse enums.
| Does this include the old JBossXB handlers?
|
Obviously not. Although you could get JBossXB to do this work for you
from the annotations, if you change the type to use that EnumValueAdapter
(I'm assuming you have such a type in the schema? :-).
| TypeBInding type = schemaBinding.getTypeBinding(qNameFromSchema);
| type.setValueAdapter(new EnumValueAdapter(...));
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134875#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...