|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.exceptions.ognl.OgnlExpression
public final class OgnlExpression
Wrapper for an OGNL expression.
Constructor Summary | |
---|---|
OgnlExpression(String expressionString) Default constructor. |
Method Summary | |
---|---|
Object |
getExpression() Returns the reference to the parsed expression instance. |
Object |
getValue(ognl.OgnlContext context, Object rootObject) Returns the value for the given context on the given root object. |
void |
setValue(ognl.OgnlContext context, Object rootObject, Object value) Sets the value dependent on the OGNL expression. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OgnlExpression(String expressionString) throws ognl.OgnlException
expressionString
- the OGNL expression to parse.
ognl.OgnlException
- on any parsing problem.
Method Detail |
---|
public Object getExpression()
public Object getValue(ognl.OgnlContext context, Object rootObject) throws ognl.OgnlException
context
- the context of the evaluation.
rootObject
- the root object to run the evaluation of the OGNL expression.
ognl.OgnlException
- on any problem encountered fetching the value.
public void setValue(ognl.OgnlContext context, Object rootObject, Object value) throws ognl.OgnlException
context
- the context of the evaluation.
rootObject
- the root object to run the evaluation of the OGNL expression.
value
- the value to set.
ognl.OgnlException
- on any problem encountered setting the value.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |