[jboss-dev-forums] [Design of JBossXB] - Re: Recent tests
adrian@jboss.org
do-not-reply at jboss.com
Wed Dec 6 06:51:30 EST 2006
I'd say for the simple types that if the complex type is just an extension
of the simple types to add attributes and it can't find a binding then it should
unmarshall as the simple type.
Something like:
1) Real Complex type - error
2) Complex type extends simple - try to unmarshall as simple type if it can't find the model class
3) Plain simple type - as now
Maybe you could add an option to the schema to enable the (2) processing
for backwards compatibility?
e.g.
SchemaBinding.setUnmarshalSimpleComplexTypeAsSimpleTypeWhenNoMapping(true);
Although, if the intention was really to map to a real type its going to be raised
as an IllegalArgumentException on the setter anyway.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991604#3991604
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991604
More information about the jboss-dev-forums
mailing list