[ 
http://jira.codehaus.org/browse/JIBX-97?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_106188
 ] 

Thomas Jones-Low commented on JIBX-97:
--------------------------------------

I don't. have any preference on the implementation of the use accessor flag, as 
long as the property cascades. The most frequent use I see would be on a 
structure so I don't have to go through every single element and add one (or 
currently two) attributes to each one.

> Add a use-accessor attribute to the property attribute group
> ------------------------------------------------------------
>
>                 Key: JIBX-97
>                 URL: http://jira.codehaus.org/browse/JIBX-97
>             Project: JiBX
>          Issue 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: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs

Reply via email to