users@jaxb.java.net

Generated classes extend

From: Sriram Thyagarajan <Sriram_Thyagarajan_at_KEANE-NNE.com>
Date: Mon, 24 Mar 2003 09:55:17 -0500

Is there a way to specify the generated class to extend/implement another
class not specified in the schema ?

e.g.

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">

  <xsd:element name="XmlInterfaceRecord" type="XmlInterfaceRecordType"/>

  <xsd:complexType name="XmlInterfaceRecordType">
    <xsd:sequence>
      <xsd:element name="AccidentHeader" type ="AccidentHeader"
      minOccurs="0" maxOccurs="unbounded"/>
    </xsd:sequence>
  </xsd:complexType>

generates ....

public interface XmlInterfaceRecord
    extends javax.xml.bind.Element, abc.XmlInterfaceRecordType
{
}


and what I am looking for is the generated class extend
xyz.GenericXmlInterfaceRecord (defined in a different package and not
defined in the XML Schema)

public interface XmlInterfaceRecord
    extends javax.xml.bind.Element, abc.XmlInterfaceRecordType,
    xyz.GenericXmlInterfaceRecord
{
}


Thanks