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

adrian@jboss.org do-not-reply at jboss.com
Tue Mar 18 10:22:11 EDT 2008


Anyway I've had enough of this thread.

We can continue to argue about arguing as much as you want,
but it isn't going to get us anywhere. :-)

The original point was:
anonymous wrote : 
  | t would be cool if we could make EnumValueAdapter be case unaware for String keys.
  | Probably the best way to impl this is to extend EVA, where we before provide proper hooks. 

* Adding a hook to hook is not "cool" it is pointless, overly complicated
and bound to lead to confusion/maintenance problems.

* There is already is a mechanism to convert the enum values to other types
or values.

* What there isn't is a declartive (annotation) to ignore case when the xml 
enum type extends xsd:string.

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

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



More information about the jboss-dev-forums mailing list