|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry.util.prop.OgnlUtils
public class OgnlUtils
Utilities wrappers around OGNL.
Method Summary | |
---|---|
static Object |
get(Object expression,
ognl.ClassResolver resolver,
Object object)
Returns the value of the expression evaluated against the object. |
static Object |
get(String expression,
ognl.ClassResolver resolver,
Object object)
Returns the value of the expression evaluated against the object. |
static Object |
getParsedExpression(String expression)
Gets a parsed OGNL expression from the input string. |
static void |
set(Object expression,
ognl.ClassResolver resolver,
Object target,
Object value)
Updates the target object with the provided value. |
static void |
set(String expression,
ognl.ClassResolver resolver,
Object target,
Object value)
Parses and caches the expression and uses it to update the target object with the provided value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Object getParsedExpression(String expression)
ApplicationRuntimeException
- if the expression can not be parsed.public static void set(String expression, ognl.ClassResolver resolver, Object target, Object value)
ApplicationRuntimeException
- if the expression
can not be parsed, or the target can not be updated.public static void set(Object expression, ognl.ClassResolver resolver, Object target, Object value)
expression
- a parsed OGNL expression
ApplicationRuntimeException
- if the target can not be updated.public static Object get(Object expression, ognl.ClassResolver resolver, Object object)
expression
- a parsed OGNL expressionobject
- the root object
ApplicationRuntimeException
- if the value can not be obtained from the object.public static Object get(String expression, ognl.ClassResolver resolver, Object object)
ApplicationRuntimeException
- if the
expression can not be parsed, or the value
not obtained from the object.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |