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 Link icon

    • Variable Link icon

      public Variable()
      Constructs a new instance.
    • Variable Link icon

      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 Link icon

    • getName Link icon

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

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

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

      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.