[jboss-dev-forums] [Design of JBossXB] - Re: Attributes problem

adrian@jboss.org do-not-reply at jboss.com
Fri Mar 7 04:50:00 EST 2008


"alex.loubyansky at jboss.com" wrote : We do support binding to a model group. Model group can be referenced by its QName. This is what @JBossXmlModelGroup is for.

I mean having a GroupBinding object inside JBossXB to which you can attach
processing rules.

The current strategy is to unwind any model into its components 
sequences, choices, elements, etc.
which means there's no way for JBossXB to give me back the information
about where in the model I am when it does "setParent", etc.

You can see part of the problem with all the "instanceof" or "isModelGroup/Element"
etc. You have to bind to the unwound model rather than the real model and
hack around the "cognitive disonance" this causes. ;-)

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

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



More information about the jboss-dev-forums mailing list