users@jaxb.java.net

Generating one java class for subnodes with the same structure

From: yauhen p <yauhen_p_at_mail.ru>
Date: Tue, 6 Oct 2009 03:33:01 -0700 (PDT)

Hi.

I m novice on JAXB and I ve faced with next problem. I generate java classes
from schema. Used jaxb transformation as follows:

<jaxb:bindings
node="xsd:complexType[@name='Contract']/xsd:complexContent/xsd:extension/xsd:sequence/xsd:element[@name='Terms']/xsd:simpleType">
                        <jaxb:typesafeEnumClass name ="Terms"/>
            </jaxb:bindings>
<jaxb:bindings
node="xsd:complexType[@name='Task']/xsd:complexContent/xsd:extension/xsd:sequence/xsd:element[@name='Terms']/xsd:simpleType">
                        <jaxb:typesafeEnumClass name ="Terms"/>
            </jaxb:bindings>

Contract and Task classes are generated and in each one inner class Terms is
generated . I want to have just one inner class Terms in one of the classes.
And in another this class Terms should be used. Is it possible to do with
JAXB?

Thanks
Yauhen
-- 
View this message in context: http://www.nabble.com/Generating-one-java-class-for-subnodes-with-the-same-structure-tp25766355p25766355.html
Sent from the java.net - jaxb users mailing list archive at Nabble.com.