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