ray wrote:
> I want to map an existing Java class to an existing XML schema using
> annotations. The schema type is derived by extension from an abstract
> complextType:
> <xsd:complexType name="Document" abstract="true"/>
> <xsd:complexType name="ECReports">
> <xsd:complexContent>
> <xsd:extension base="epcglobal:Document">
> <xsd:sequence>...</xsd:sequence>
> </xsd:extension>
> </xsd:complexContent>
> </xsd:complexType>
> and my existing class :
> public class ECReports {
> ..
> }
> Because the ECReports class has no base class, it can't generate
> complexContent. Should I give ECReports class a abstract base class such as
> :
> public abstract class Document {
> }
> public class ECReports extends Document {
> ..
> }
> Any suggestion?TIA.
I think that's the only way to do it.
--
Kohsuke Kawaguchi
Sun Microsystems kohsuke.kawaguchi_at_sun.com