|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.click.util.PropertyUtils
Provide property getter and setter utility methods.
| Constructor Summary | |
PropertyUtils()
|
|
| Method Summary | |
static Object |
getValue(Object source,
String name)
Return the property value for the given object and property name. |
static Object |
getValue(Object source,
String name,
Map cache)
Return the property value for the given object and property name. |
static Object |
getValueOgnl(Object source,
String name,
Map context)
Return the property value for the given object and property name using the OGNL library. |
static void |
setValueOgnl(Object target,
String name,
Object value,
Map context)
Return the property value for the given object and property name using the OGNL library. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PropertyUtils()
| Method Detail |
public static Object getValue(Object source,
String name)
source - the source objectname - the name of the property
public static Object getValue(Object source,
String name,
Map cache)
source - the source objectname - the name of the propertycache - the cache of reflected property Method objects, do NOT modify
this cache
public static Object getValueOgnl(Object source,
String name,
Map context)
throws ognl.OgnlException
source - the source objectname - the name of the propertycontext - the OGNL context, do NOT modify this object
ognl.OgnlException - if an OGN error occurs
public static void setValueOgnl(Object target,
String name,
Object value,
Map context)
throws ognl.OgnlException
target - the target object to set the property ofname - the name of the property to setvalue - the property value to setcontext - the OGNL context, do NOT modify this object
ognl.OgnlException - if an OGN error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||