>>>>> "Keith" == Keith Visco <[EMAIL PROTECTED]> writes:
> Date: Thu, 31 Oct 2002 15:38:55 -0600
> From: Keith Visco <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Re: [castor-dev] source generator: ref and names for
> Frank Trenker wrote:
>>
>> Hi,
>> How can i set the name for the getter/setter-methods
>> of a referenced object:
>>
>> <xsd:element name="Project">
>> <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="superProject" ref="Project" minOccurs="0" maxOccurs="1"/>
>> </xsd:sequence>
>> </xsd:complexType>
>> </xsd:element>
>>
>> The name-attribute (superProject) is ignored, how can i set
>> my own method-names?
You could define a complexType-by-name and put a reference by another
name in it. Something like:
<xsd:element name="Project" type="project"/>
<xsd:complexType name="project">
<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="superProject" type="project" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
> Both name and ref attributes are not allowed to appear on the same
> element declaration. Currently the name attribute is ignored, but an
> error message should be thrown instead.
> Arnaud is working on a way to allow someone to specify their own method
> names, please see:
> http://bugzilla.exolab.org/show_bug.cgi?id=882
> --Keith
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
> unsubscribe castor-dev
:wq!
Daan Hoogland Unix consultants v v
[EMAIL PROTECTED] OO developers \ /
### ## ## # >---X---<
http://snow.nl # # # # # # # # / \
Snow B.V. ## # # # # # # # ^ ^
Tel. (+31)30-6051501 # # # # # # # #
Fax. (+31)30-6037445 ### # # ## ## ##
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev