users@jaxb.java.net

Specifying Interfaces that generated classes extend/implement

From: Douglas Jackson <douglasscottjackson_at_yahoo.com>
Date: Tue, 04 Mar 2003 13:57:11 -0800

Has there been any discussion of allowing the
specification of an interface that a generated
class extends/implements? (The generated interface
would extend the interface and the generated
implementation would implement it)
This would be handy for cases where an API was
exposing some methods and the jaxb class was going
to provide the implementation of the API.

Something along the line of:

   <xs:element name="x">
      <xs:annotation><xs:appinfo>
            <jaxb:class interface="com.x"/>
      </xs:appinfo></xs:annotation>
      <xs:complexType>
         <xs:choice>
            <xs:element ref="y"/>
         </xs:choice>
      </xs:complexType>
   </xs:element>


__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/