[ http://jira.codehaus.org/browse/JIBX-97?page=all ]
Dennis Sosnoski updated JIBX-97:
--------------------------------
Assign To: Dennis Sosnoski
I agree it's cumbersome to have to use get-method/set-method to do this now.
I've thought about implementing a somewhat different approach to get to what I
think is the same goal, where you use an attribute property="xxxx" to indicate
you want to use accessor methods to work with a value. Do you see any problem
in providing improved accessor method support this way, rather than the
use-accessor attribute you requested?
> 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
> Assignee: Dennis Sosnoski
> 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 xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs