Hey all,

<xsd:element name="Info" minOccurs="1">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Foobar" maxOccurs="unbounded" minOccurs="0"
type="FoobarType"/>
</xsd:sequence>
<xsd:attribute name="Id" use="required" type="xsd:string"/>
</xsd:complexType>
</xsd:element>

Castor XML Source Generated produces an Info.class with the following Method:

public void addFoobar(Foobar vFoobar) {
 ...
}

This is not usable, since I cannot instantiate a "Foobar" object, since "Foobar" is of type "FoobarType", which is an abstract type.

Why does Castor not generate a method with this signature:

public void addFoobar(FoobarType vFoobar) {
 ...
}

Then I could use whatever FoobarType-Implementation i'd like to.
I've read http://www.castor.org/xml-mapping.html#5.-xsi:type but I do not use mapping files at all, since my model is generated by Castor XML 0.9.7 itself.

kind regards
Mike

-------------------------------------------------
If you wish to unsubscribe from this list, please send an empty message to the following address:

[EMAIL PROTECTED]
-------------------------------------------------

Reply via email to