users@jaxb.java.net

Re: Anyone using JAXB2 Basics inheritance?

From: Aleksei Valikov <valikov_at_gmx.net>
Date: Fri, 18 Mar 2011 21:59:32 +0100

Hi,

> I have JAXB2 Basics setup in Eclipse to use the inheritance plug-in and it's
> mostly working for what I need.
> So, I have something like this:
>
> <?xml version="1.0"?>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
>            xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
>
> xmlns:inheritance="http://jaxb2-commons.dev.java.net/basic/inheritance"
>            jaxb:version="2.1"
>            jaxb:extensionBindingPrefixes="inheritance">
>
> <xs:complexType name="WhateverImplementer">
>     <xs:annotation>
>       <xs:appinfo>
>         <inheritance:implements>my.package.Whatever</inheritance:implements>
>       </xs:appinfo>
>     </xs:annotation>
>   </xs:complexType>
> </xs:schema>
>
> Is there a way to define the my.package.Whatever interface somewhere else in
> XSD?

Would you give an example? How would you want this interface to be defined?

Bye,
/lexi