Class ExprLookup.Variable

java.lang.Object
org.apache.commons.configuration2.interpol.ExprLookup.Variable
Enclosing class:
ExprLookup

public static class ExprLookup.Variable extends Object
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

      public Variable(String name, Object value)
      Constructs a new instance.
      Parameters:
      name - The name to be used in expressions.
      value - The object to be accessed in expressions.
  • Method Details

    • getName

      public String getName()
      Gets the name to be used in expressions.
      Returns:
      the name to be used in expressions.
    • getValue

      public Object getValue()
      Sets the value to be used in expressions.
      Returns:
      the value to be used in expressions.
    • setName

      public void setName(String name)
      Sets the name to be used in expressions.
      Parameters:
      name - the name to be used in expressions.
    • setValue

      public void setValue(Object value) throws ConfigurationRuntimeException
      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.