Hi,
I create a class that comtains a list of objects from my own Classes:
<!--======================Group===================-->
<xsd:element name="Group">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="id" type="xsd:integer"
minOccurs="1" maxOccurs="1"/>
<xsd:element name="name" type="xsd:string"
minOccurs="1" maxOccurs="1"/>
<xsd:element name="users" ref="User"
maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<!--======================User=======================-->
<xsd:element name="User">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="id" type="xsd:integer"
minOccurs="1" maxOccurs="1"/>
<xsd:element name="name" type="xsd:string"
minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
That works, but i have two questions:
-Why is the name-attribute of the list-element ignored? How can i generate
methods get/setUsers() instead of get/setUser() ?
-The generated class works intern with Vector/ArrayList for the
list-representation, but
the getter/setter are generated with Arrays. Its possible to generate
them for Vectors too
(public Vector getUsers(), public void setUsers(Vector list) )
Thanks in advance,
Steffen
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev
