You have a fair point with your rant. Even in conditions where I *do*
control the schema, I prefer to use an external binding specification
rather than pollute the schema. Unfortunately, external binding files
are frustrating to write.
In answer to your original question, you can achieve what you want by
writing an XJC plugin, which is very easy to do.
https://jaxb.dev.java.net/plugin.html
kenny
Dmitri Colebatch wrote:
> On 6/28/06, Kasia Trapszo <kasia_at_trapszo.com> wrote:
>> Why not split the schema then?
>
> Because I don't have control over the schema.
>
> <rant>
> And this leads to my main gripe with the architecture of xjc and its
> RI extensions. Putting java specific content in a schema is (imho)
> completely wrong. We use webservices because we send and receive
> messages to and from third parties who don't use java (with the
> exception of one or two). I shouldn't need to change the schema in
> order to change the internals of my application.
> </rant>
>
> I'm more than open to suggestions, but without the ability to change
> the schema it seems I cant make this happen.
>
> cheers
> dim
>
>>
>> On Jun 27, 2006, at 9:37 PM, Dmitri Colebatch wrote:
>>
>> > Perhaps I wasn't clear. The currently functionality allows for _all_
>> > of the generated classes to have a common superclass (or interface).
>> >
>> > The functionality I am after is to be able to specify this on a node
>> > by node basis.
>> >
>> > cheers
>> > dim
>> >
>> > On 6/28/06, Kasia Trapszo <kasia_at_trapszo.com> wrote:
>> >> It's a common requirement:
>> >>
>> >> http://java.sun.com/webservices/docs/2.0/jaxb/
>> >> vendorCustomizations.html#superclass
>> >>
>> >> On Jun 27, 2006, at 9:28 PM, Dmitri Colebatch wrote:
>> >>
>> >> > Hi all,
>> >> >
>> >> > I'm assuming this isn't possible, but am wondering why not. I
>> >> would
>> >> > like some of my generated classes to have a common super interface.
>> >> > Whilst technically speaking it might make more sense to do through
>> >> > through schema inheritance, in this case I don't have that level on
>> >> > control.
>> >> >
>> >> > Does anyone else have this need? Is it actually possible?
>> >> >
>> >> > cheers
>> >> > dim
>> >> >
>> >> >
>> >> ---------------------------------------------------------------------
>> >> > To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
>> >> > For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>> >> >
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
>> >> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>> >>
>> >>
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
>> > For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
>> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>