/** * Evaluates an EL expression, and coerces the result to the specified type. * @param expression The EL expression to be evaluated. * @param expectedType Specifies the type that the resultant evaluation * will be coerced to. * @return The result of the expression evaluation. */ public Object getValue(String expression, Class<?> expectedType) { ValueExpression exp = factory.createValueExpression( elManager.getELContext(), bracket(expression), expectedType); return exp.getValue(elManager.getELContext()); }
/** * Assign an EL expression to an EL variable. The expression is parsed, * but not evaluated, and the parsed expression is mapped to the EL * variable in the local variable map. * Any previously assigned expression to the same variable will be replaced. * If the expression is <code>null</code>, the variable will be removed. * @param var The name of the variable. * @param expression The EL expression to be assigned to the variable. */ public void setVariable(String var, String expression) { ValueExpression exp = factory.createValueExpression( elManager.getELContext(), bracket(expression), Object.class); elManager.setVariable(var, exp); }
/** * Sets an expression with a new value. * The target expression is evaluated, up to the last property resolution, * and the resultant (base, property) pair is set to the provided value. * * @param expression The target expression * @param value The new value to set. * @throws PropertyNotFoundException if one of the property * resolutions failed because a specified variable or property * does not exist or is not readable. * @throws PropertyNotWritableException if the final variable or * property resolution failed because the specified * variable or property is not writable. * @throws ELException if an exception was thrown while attempting to * set the property or variable. The thrown exception * must be included as the cause property of this exception, if * available. */ public void setValue(String expression, Object value) { ValueExpression exp = factory.createValueExpression( elManager.getELContext(), bracket(expression), Object.class); exp.setValue(elManager.getELContext(), value); }
public Object getValue(String expression, Class<?> expectedType) { ValueExpression ve = factory.createValueExpression( context, bracket(expression), expectedType); return ve.getValue(context); }
public Object getValue(String expression, Class<?> expectedType) { ValueExpression ve = factory.createValueExpression( context, bracket(expression), expectedType); return ve.getValue(context); }
public Object getValue(String expression, Class<?> expectedType) { ValueExpression ve = factory.createValueExpression( context, bracket(expression), expectedType); return ve.getValue(context); }
public void setValue(String expression, Object value) { ValueExpression ve = factory.createValueExpression( context, bracket(expression), Object.class); ve.setValue(context, value); }
public void setValue(String expression, Object value) { ValueExpression ve = factory.createValueExpression( context, bracket(expression), Object.class); ve.setValue(context, value); }
public void setValue(String expression, Object value) { ValueExpression ve = factory.createValueExpression( context, bracket(expression), Object.class); ve.setValue(context, value); }
/** * Evaluates an EL expression, and coerces the result to the specified type. * @param expression The EL expression to be evaluated. * @param expectedType Specifies the type that the resultant evaluation * will be coerced to. * @return The result of the expression evaluation. */ public Object getValue(String expression, Class<?> expectedType) { ValueExpression exp = factory.createValueExpression( elManager.getELContext(), bracket(expression), expectedType); return exp.getValue(elManager.getELContext()); }
/** * Evaluates an EL expression, and coerces the result to the specified type. * @param expression The EL expression to be evaluated. * @param expectedType Specifies the type that the resultant evaluation * will be coerced to. * @return The result of the expression evaluation. */ public Object getValue(String expression, Class<?> expectedType) { ValueExpression exp = factory.createValueExpression( elManager.getELContext(), bracket(expression), expectedType); return exp.getValue(elManager.getELContext()); }
/** * Evaluates an EL expression, and coerces the result to the specified type. * @param expression The EL expression to be evaluated. * @param expectedType Specifies the type that the resultant evaluation * will be coerced to. * @return The result of the expression evaluation. */ public Object getValue(String expression, Class<?> expectedType) { ValueExpression exp = factory.createValueExpression( elManager.getELContext(), bracket(expression), expectedType); return exp.getValue(elManager.getELContext()); }
/** * Evaluates an EL expression, and coerces the result to the specified type. * @param expression The EL expression to be evaluated. * @param expectedType Specifies the type that the resultant evaluation * will be coerced to. * @return The result of the expression evaluation. */ public Object getValue(String expression, Class<?> expectedType) { ValueExpression exp = factory.createValueExpression( elManager.getELContext(), bracket(expression), expectedType); return exp.getValue(elManager.getELContext()); }
/** * Evaluates an EL expression, and coerces the result to the specified type. * @param expression The EL expression to be evaluated. * @param expectedType Specifies the type that the resultant evaluation * will be coerced to. * @return The result of the expression evaluation. */ public Object getValue(String expression, Class<?> expectedType) { ValueExpression exp = factory.createValueExpression( elManager.getELContext(), bracket(expression), expectedType); return exp.getValue(elManager.getELContext()); }
/** * Evaluates an EL expression, and coerces the result to the specified type. * @param expression The EL expression to be evaluated. * @param expectedType Specifies the type that the resultant evaluation * will be coerced to. * @return The result of the expression evaluation. */ public Object getValue(String expression, Class<?> expectedType) { ValueExpression exp = factory.createValueExpression( elManager.getELContext(), bracket(expression), expectedType); return exp.getValue(elManager.getELContext()); }
/** * Evaluates an EL expression, and coerces the result to the specified type. * @param expression The EL expression to be evaluated. * @param expectedType Specifies the type that the resultant evaluation * will be coerced to. * @return The result of the expression evaluation. */ public Object getValue(String expression, Class<?> expectedType) { ValueExpression exp = factory.createValueExpression( elManager.getELContext(), bracket(expression), expectedType); return exp.getValue(elManager.getELContext()); }
public void setVariable(String variable, String expression) { if (expression == null) { manager.setVariable(variable, null); } else { ValueExpression ve = factory.createValueExpression( context, bracket(expression), Object.class); manager.setVariable(variable, ve); } }
/** * Evaluates an EL expression, and coerces the result to the specified type. * @param expression The EL expression to be evaluated. * @param expectedType Specifies the type that the resultant evaluation * will be coerced to. * @return The result of the expression evaluation. */ public Object getValue(String expression, Class<?> expectedType) { ValueExpression exp = factory.createValueExpression( elManager.getELContext(), bracket(expression), expectedType); return exp.getValue(elManager.getELContext()); }
public void setVariable(String variable, String expression) { if (expression == null) { manager.setVariable(variable, null); } else { ValueExpression ve = factory.createValueExpression( context, bracket(expression), Object.class); manager.setVariable(variable, ve); } }
public void setVariable(String variable, String expression) { if (expression == null) { manager.setVariable(variable, null); } else { ValueExpression ve = factory.createValueExpression( context, bracket(expression), Object.class); manager.setVariable(variable, ve); } }