users@jaxb.java.net

Extends/implements

From: Aleksei Valikov <valikov_at_gmx.net>
Date: Thu, 19 Jan 2006 15:04:09 +0100

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