commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 27074] New: - Add nullate utilities
Date Thu, 19 Feb 2004 11:14:27 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27074>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27074

Add nullate utilities

           Summary: Add nullate utilities
           Product: Commons
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Bean Utilities
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: mguillemot@yahoo.fr


It's a common task to reset all properties of an object to null (or to default
values for primitives), for instance in Struts in the reset method of subclasses
of ActionForm.

It would be usefull to have something like
- nullateProperties(Object _o)
 to nullate the properties of _o declared by the class of _o

- nullateProperties(Object _o, Class _clazz)
 to nullate the properties of _o declared by _clazz

- nullateProperties(Object _o, Class _clazz, boolean _bAncestorsToo)
 to nullate the properties of _o declared by _clazz and its ancestors

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message