Package de.odysseus.el.util
Class SimpleContext.Variables
- java.lang.Object
-
- javax.el.VariableMapper
-
- de.odysseus.el.util.SimpleContext.Variables
-
- Enclosing class:
- SimpleContext
static class SimpleContext.Variables extends VariableMapper
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.Map<java.lang.String,ValueExpression>map
-
Constructor Summary
Constructors Constructor Description Variables()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValueExpressionresolveVariable(java.lang.String variable)Resolves the specified variable name to a ValueExpression.ValueExpressionsetVariable(java.lang.String variable, ValueExpression expression)Assign a ValueExpression to an EL variable, replacing any previously assignment to the same variable.
-
-
-
Field Detail
-
map
java.util.Map<java.lang.String,ValueExpression> map
-
-
Method Detail
-
resolveVariable
public ValueExpression resolveVariable(java.lang.String variable)
Description copied from class:VariableMapperResolves the specified variable name to a ValueExpression.- Specified by:
resolveVariablein classVariableMapper- Parameters:
variable- The variable name- Returns:
- the ValueExpression assigned to the variable, null if there is no previous assignment to this variable.
-
setVariable
public ValueExpression setVariable(java.lang.String variable, ValueExpression expression)
Description copied from class:VariableMapperAssign a ValueExpression to an EL variable, replacing any previously assignment to the same variable. The assignment for the variable is removed if the expression is null.- Specified by:
setVariablein classVariableMapper- Parameters:
variable- The variable nameexpression- The ValueExpression to be assigned to the variable.- Returns:
- The previous ValueExpression assigned to this variable, null if there is no previous assignment to this variable.
-
-