I just solved the same problem moments ago :-)
There is probably a better way to do it, but this may be a good start for
you:
if( dataType.schemaType().getJavaClass().equals(CircleType.class) ) {
CircleType circle = (CircleType)
dataType.changeType(CircleType.type);
}
With many types you'll have an ugly if-then-else tree that must change
everytime you add a new type, so hopefully someone can suggest a cleaner
way.
Mike
--
View this message in context:
http://www.nabble.com/AbstractTypes-problem-tf1861922.html#a5086662
Sent from the Xml Beans - User forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]