Class DefaultVariableContext

  • All Implemented Interfaces:
    VariableContext

    public class DefaultVariableContext
    extends java.lang.Object
    implements VariableContext

    A VariableContext implementation based upon a java.util.HashMap for simple name-value mappings.

    Author:
    bob mcwhirter (bob @ werken.com)
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getVariableValue​(java.lang.String name)
      Resolve a variable binding
      void setVariableValue​(java.lang.String name, java.lang.Object value)
      Set a variable finding
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultVariableContext

        public DefaultVariableContext()
    • Method Detail

      • setVariableValue

        public void setVariableValue​(java.lang.String name,
                                     java.lang.Object value)
        Set a variable finding

        Set the value of a named variable.

        Parameters:
        name - The name of the variable to bind to the value
        value - The value to bind to the variable name.