users@jaxb.java.net

Re: Extends/implements

From: Ed Mooney <Ed.Mooney_at_Sun.COM>
Date: Thu, 19 Jan 2006 09:33:05 -0500

Hi Lexi,

Check out:

 
http://java.sun.com/webservices/docs/1.6/jaxb/vendorCustomizations.html#superclass

Regards,

   -- Ed

Aleksei Valikov wrote:
> Hi.
>
> Before I start another add-on...
>
> JAXB 1.0.X
>
> Is there a way to make generated classes extend a certain class or
> implement given interfaces?
> I can imagine an annotation like:
>
> <my:class extends="com.foo.A" implements="com.foo.IA com.foo.IB"/>
>
> Target class item will implement com.foo.IA and com.foo.IB
> (schema-derived interfaces extend these interfaces, implementation
> classes implement them). If target class item has no superclass,
> generated implementation class extens com.foo.A (otherwise a warning is
> shown).
>
> Purpose: allow JAXB-generated classes extend/implement existing
> classes/interfaces.
>
> Bye.
> /lexi
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>