Title: About generated java codes to support substitutionGroup

Does castor support substitutionGroup feature?

e.g. in my schema

<element name="Party" type="cc:PartyType" abstract="true" />
<element name="IndCustomer" type="cc:IndCustomerType" substitutionGroup="cc:Party" />
...
definition of PartyType and IndCustomerType and PartyType is base of IndCustomerType
....

<!-- to use it -->
<complexType name="MyType">

        <element ref="cc:Party"/>

</complexType>

In the generated codes, I found in MyType, it is using

        Party _party

as member variable. I can not set an instance of IndCustomer in MyType.

Actually, the inheritance tree looks like

        PartyType --> Party
        PartyType --> IndCustomerType --> IndCustomer

Any idea? Do I have to manually change the codes? Or reformat my schema.

Thanks.

Mike

Reply via email to