users@jaxb.java.net

Re: Interface inheritance

From: Aleksei Valikov <valikov_at_gmx.net>
Date: Tue, 3 May 2011 22:45:26 +0200

Worksi with enums in 0.6.2 (current snapshot).

On Mon, May 2, 2011 at 5:57 PM, Aleksei Valikov <valikov_at_gmx.net> wrote:
> Hi,
>
>> Oh, to be thorough: I saw the Inheritance plugin also provided by the Jaxb2
>> Basics, but I've got to write it without touching the xsd schema file.
>
> You can use binding files for this.
>
> <jaxb:bindings
>        xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
>        xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>        xmlns:inheritance="http://jaxb2-commons.dev.java.net/basic/inheritance"
>        jaxb:extensionBindingPrefixes="inheritance"
>        jaxb:version="2.1">
>
>        <jaxb:bindings schemaLocation="schema.xsd" node="/xsd:schema">
>                <jaxb:bindings node="xsd:complexType[@name='issueJIIB1Type']">
>                        <inheritance:implements>java.lang.Cloneable</inheritance:implements>
>                </jaxb:bindings>
>        </jaxb:bindings>
> </jaxb:bindings>
>
> It does not work with Enums at the moment, however. Please file an issue:
>
> http://jira.highsource.org/browse/JIIB
>
> Bye,
> /lexi
>