|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.common.property.PropertyAccessUtil
public final class PropertyAccessUtil
Utility class that provides methods to access properties of an object dynamically. Wraps Apache Common-PropertyUtils.
| Method Summary | |
|---|---|
static java.lang.Object |
getProperty(java.lang.Object base,
java.lang.String property)
Gets the value of the specified property of an object. |
static void |
setProperty(java.lang.Object base,
java.lang.String property,
java.lang.Object value)
Sets the value of the specified property of an object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.Object getProperty(java.lang.Object base,
java.lang.String property)
throws PropertyException
base - Object that holds the propertyproperty - Property name; all property access methods supported by PropertyUtils is valid.
PropertyException - If no appropriate access method could be found or if the invocation
of one of the property access methods failed. The nested exception describes the error in detail.
public static void setProperty(java.lang.Object base,
java.lang.String property,
java.lang.Object value)
throws PropertyException
base - Object to invoke the method onproperty - Property namevalue - Property value
Property chains of the form "prop1.prop2" are *not* supported.
PropertyException - If no appropriate access method could be found or if the invocation
of one of the property access methods failed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||