![]() |
|
Version: 0.27 - Last update: 2004-05-30 | Home Page - SourceForge Project Page - Contact |
Jodd Overview News Download License References Development Using Jodd Javadoc JUnit report Community Contribute Report a bug More reading Milestone 0.30 ![]() ![]() |
Manage propertiesJodds bean package contains utilities for setting and getting the values of java bean properties.Usage is simple and intuitive. BeanUtil.setProperty sets
specified java bean property. Logic behind this method is quite
user-friendly. For example, if property that has to be set is an
Integer , provided bean value may be any Integer-compatible
object.
Getting a property value is also simple:
All this is quite common for a bean library. Only one thing has to be emphasized: BeanUtil.setProperty doesn't throw an
Exception on failure. Instead, method returns
false . It seems that this reduce the amount of code when
multiple properties of a bean are set at once and yet is possible to
find what set failed, if needed.
|