You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2004/02/19 12:14:27 UTC
DO NOT REPLY [Bug 27074] New: -
Add nullate utilities
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