users@jaxb.java.net

Re: jxc : Inheritance for only one classe?

From: YannickM <ymartel_at_wiztivi.com>
Date: Thu, 14 Oct 2010 07:59:12 -0700 (PDT)

Aleksei Valikov wrote:
>
> Hi,
>
>> I have to generate some classes from a XSD file.
>>
>> I would like to knwo if it is possible to generate a class with a
>> specific super class?
>>
>> I'va found the tag <xjc:superClass name="mySuperClass"/>, but it seems
>> to work only in a <jxb:globalBindings>, and apply it for all the
>> classes!
>> I've tried to add the superClass tag in a "jxb:bindings
>> node="//xs:elemment[@name='mynode']" with any results :/
>>
>> I use 2.2.1 version of jaxb-api and 0.7.4 version of maven-jaxb2-plugin.
>
> Use the following plugin:
>
> http://confluence.highsource.org/display/J2B/Inheritance+plugin
>
> Bye.
> /lexi
>
>

Thanks,

But, I don't want to modify the XSD, cause it is given.
I have just a binding configuration file (*.xjb)
-- 
View this message in context: http://old.nabble.com/jxc-%3A-Inheritance-for-only-one-classe--tp29962879p29963259.html
Sent from the java.net - jaxb users mailing list archive at Nabble.com.