Title: About generated java codes to support substitutionGroup

 

Hi Michael,

 

The Schema Object Model (SOM) supports substitutionGroup but not the Source Generator. It is on the to-do list but it is not a top priority.

Feel free to contribute to the project by adding the support.


Arnaud

 

-----Original Message-----
From: Michael Wang (IT) [mailto:[EMAIL PROTECTED]]
Sent:
Monday, June 03, 2002 8:45 PM
To: [EMAIL PROTECTED]
Subject: [castor-dev] 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