Class ExprLookup.Variable
java.lang.Object
org.apache.commons.configuration2.interpol.ExprLookup.Variable
- Enclosing class:
ExprLookup
The key and corresponding object that will be made available to the JexlContext for use in expressions.
-
Constructor Details
-
Variable
public Variable()Constructs a new instance. -
Variable
Constructs a new instance.- Parameters:
name
- The name to be used in expressions.value
- The object to be accessed in expressions.
-
-
Method Details
-
getName
Gets the name to be used in expressions.- Returns:
- the name to be used in expressions.
-
getValue
Sets the value to be used in expressions.- Returns:
- the value to be used in expressions.
-
setName
Sets the name to be used in expressions.- Parameters:
name
- the name to be used in expressions.
-
setValue
Sets the value to be used in expressions.- Parameters:
value
- The object to be accessed in expressions.- Throws:
ConfigurationRuntimeException
- Wraps an exception creating the value.
-