hi,
sample schema:
<xsd:element name="us-address" type="us-address-type" />
<xsd:complexType name="us-address-type">
<xsd:sequence>
<xsd:element name="addr1" type="xsd:string" />
<xsd:element name="addr2" type="xsd:string" />
<xsd:element name="city" type="xsd:string" />
<xsd:element name="state" type="state-code" />
<xsd:element name="zip" type="zip-code" />
</xsd:sequence>
</xsd:complexType>
running the sourcegenerator, the generated java class for
us-address-type (UsAddressType) is designated abstract while a separate
UsAddress.java file is generated that extends it.
this does not make sense to me. to me the element is an instance
and the complexType is the class. i was expecting a single class, not two.
matters get complicated when i introduce a new class, say "Shipment"
with a from-address and to-address of type "us-address-type". now i have
three classes UsAddress, FromAddress, and ToAddress all "extending"
a single type! this is terrible because i can't instantiate a UsAddressType
and assign it to a FromAddress or ToAddress.
so i must conclude there's something fundamental that i don't get about
the sourcegenerator.
would anyone care to explain what i'm doing wrong?
thanks! eitan
/ eitan
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev