users@jaxb.java.net

Anyone using JAXB2 Basics inheritance?

From: Colin Freas <colinfreas_at_gmail.com>
Date: Thu, 17 Mar 2011 16:05:02 -0400

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?

-Colin