Class ExprLookup.Variable
- java.lang.Object
-
- org.apache.commons.configuration2.interpol.ExprLookup.Variable
-
- Enclosing class:
- ExprLookup
public static class ExprLookup.Variable extends java.lang.ObjectThe key and corresponding object that will be made available to the JexlContext for use in expressions.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()Gets the name to be used in expressions.java.lang.ObjectgetValue()Sets the value to be used in expressions.voidsetName(java.lang.String name)Sets the name to be used in expressions.voidsetValue(java.lang.Object value)Sets the value to be used in expressions.
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Gets the name to be used in expressions.- Returns:
- the name to be used in expressions.
-
getValue
public java.lang.Object getValue()
Sets the value to be used in expressions.- Returns:
- the value to be used in expressions.
-
setName
public void setName(java.lang.String name)
Sets the name to be used in expressions.- Parameters:
name- the name to be used in expressions.
-
setValue
public void setValue(java.lang.Object value) throws ConfigurationRuntimeExceptionSets the value to be used in expressions.- Parameters:
value- The object to be accessed in expressions.- Throws:
ConfigurationRuntimeException- Wraps an exception creating the value.
-
-