|
Hello, I have just started using Castor in a projekt that I
am working with. I am using SourceCodeGenerator to parse an XML Schema into
java-files. I want to create more than one pair of get/set methods for a
field/member. When I generate java-code, my sourcefile looks like this: public class User implements java.io.Serializable { private java.lang.String
_userName; public java.lang.String
getUserName() { return this._userName; } public void setUserName(java.lang.String userName) { this._userName = userName; } Now I
want to create a toString() method that returns the _userName (doing the same
as getUserName()): public java.lang.String
toString() { return this._userName; } Is there some possible
way to do this with Castor? |
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev
