users@jaxb.java.net

Re: ANN: JAXB 1.0.1 complex types, sub-typing and Element substituion

From: Prakash Yamuna <yamunap_at_HOTMAIL.COM>
Date: Thu, 05 Jun 2003 12:31:46 -0600

The change log for JAXB1.0.1 says that Element substitution is supported. Can somebody throw light on the story for sub typing (with abstract types).

Ex:

<xs:complexType name="Dealer" abstact="true">
 ....
</xs:complexType>

<xs:complexType name="AuthorizedRepairer">
 <xs:complexContent>
  <xs:extension base="Dealer">
   ...
  </xs:extension>
 </xs:complexContent>
</xs:complexType>

<xs:complexType name="Distributor>
 <xs:complexContent>
  <xs:extension base="Dealer">
   ...
  </xs:extension>
 </xs:complexContent>
</xs:complexType>

<xs:element name="Party" type="Dealer">

Currently JAXB-RI 1.0 chokes because Dealer is an abstract type.

Also is there a list of features supported/not supported by JAXB-RI1.0.1?