You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by ramanan sathyanarayanan <to...@gmail.com> on 2006/08/07 23:07:15 UTC

or in the getter and setter

Hello,

I did a scomp in Java 1.4 version for a xsd and got the java files
successfully. But when i see the code, i was able to see "Array" is added to
all getter and setter methods of list type objects. When i did in Java
1.5version, i am seeing "List" in the end of all getter and setter
methods. I
think this is not a part of JavaBeans specification.

For example, if i have,
List abc;

I should get the following getter and setter methods

getAbc() and setAbc();

Is there a way to achieve this.

-- 
Regards,
Ramanan

RE: or in the getter and setter

Posted by Radu Preotiuc-Pietro <ra...@bea.com>.
In XmlBeans "Array" gets always appended to the name. If you need it for
a special type, then you can use the extension feature to add new
methods to the generated classes that would be named "getFoo" and
delegate to "getFooArray" but if you need that for every type you are
generating, then there is no way to do it....
 
Radu

________________________________

From: ramanan sathyanarayanan [mailto:toramanan@gmail.com] 
Sent: Monday, August 07, 2006 2:07 PM
To: user@xmlbeans.apache.org
Subject: <Arrary> or <List> in the getter and setter


Hello,

I did a scomp in Java 1.4 version for a xsd and got the java files
successfully. But when i see the code, i was able to see "Array" is
added to all getter and setter methods of list type objects. When i did
in Java 1.5 version, i am seeing "List" in the end of all getter and
setter methods. I think this is not a part of JavaBeans specification. 

For example, if i have,
List abc;

I should get the following getter and setter methods 

getAbc() and setAbc();

Is there a way to achieve this.

-- 
Regards,
Ramanan 
_______________________________________________________________________
Notice:  This email message, together with any attachments, may contain
information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated
entities,  that may be confidential,  proprietary,  copyrighted  and/or
legally privileged, and is intended solely for the use of the individual
or entity named in this message. If you are not the intended recipient,
and have received this message in error, please immediately return this
by email and then delete it.