Add a use-accessor attribute to the property attribute group
------------------------------------------------------------
Key: JIBX-97
URL: http://jira.codehaus.org/browse/JIBX-97
Project: JiBX
Type: New Feature
Components: core
Reporter: Thomas Jones-Low
Priority: Minor
Many books on good java code practices request and require Class variable be
private and be accessed only through accessor methods. The JavaBean standard
defines these get/set accessor methods to be of a specific format. e.g. the
variable userName would have accessor method of getUserName() and
setUserName().
JiBX does have a get-method and set-method, but I'd like to streamline their
use some, based upon a general Java programming standard.
The use-accessor attribute defaults to false. If set to true, the JiBX calls to
set/get the value of variable will be done through the accessor methods (getXXX
and setXXX) rather than direct access to the variables. If set on a structure,
all elements of the structure use the get/set accessor. If set on a binding or
mapping element, it defaults for all the elements within. If set true on a
higher element, you can set it false on a lower element to override the
setting.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs