public class BeanMapExpressionEvaluator extends MVELExpressionEvaluator implements ExecutionContextExpressionEvaluator
ExecutionContext
via the BeanContext
.
Cab be used to selectively target resources based on the
contents of the java objects bound to the supplied ExecutionContext
via the BeanContext
.
The special EC variable gives access to the EditingContext.ExpressionEvaluator.Factory
Modifier and Type | Field and Description |
---|---|
static String |
MVEL_EXECUTION_CONTEXT_KEY |
Constructor and Description |
---|
BeanMapExpressionEvaluator() |
BeanMapExpressionEvaluator(String expression) |
Modifier and Type | Method and Description |
---|---|
boolean |
eval(ExecutionContext context)
Evaluate an expression based on the supplied
ExecutionContext . |
Object |
getValue(ExecutionContext context)
Evaluate an expression based on the supplied
ExecutionContext
and return the value. |
eval, exec, exec, getCompiled, getExpression, getValue, setExpression, setToType, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
eval, getExpression, getValue, setExpression
public static final String MVEL_EXECUTION_CONTEXT_KEY
public BeanMapExpressionEvaluator()
public BeanMapExpressionEvaluator(String expression) throws SmooksConfigurationException
SmooksConfigurationException
public boolean eval(ExecutionContext context) throws ExpressionEvaluationException
ExecutionContextExpressionEvaluator
ExecutionContext
.eval
in interface ExecutionContextExpressionEvaluator
context
- The context.ExpressionEvaluationException
- Invalid expression evaluation (implementation specific).public Object getValue(ExecutionContext context) throws ExpressionEvaluationException
ExecutionContextExpressionEvaluator
ExecutionContext
and return the value.getValue
in interface ExecutionContextExpressionEvaluator
context
- The context.ExpressionEvaluationException
- Invalid expression evaluation (implementation specific).Copyright © 2020. All rights reserved.