Package com.werken.xpath
Class DefaultVariableContext
java.lang.Object
com.werken.xpath.DefaultVariableContext
- All Implemented Interfaces:
VariableContext
A VariableContext
implementation based upon a java.util.HashMap for simple
name-value mappings.
- Author:
- bob mcwhirter (bob @ werken.com)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetVariableValue(String name) Resolve a variable bindingvoidsetVariableValue(String name, Object value) Set a variable finding
-
Constructor Details
-
DefaultVariableContext
public DefaultVariableContext()
-
-
Method Details
-
getVariableValue
Resolve a variable bindingRetrieve the currently bound value of the named variable, or null if no such binding exists.
- Specified by:
getVariableValuein interfaceVariableContext- Parameters:
name- The name of the variable sought.- Returns:
- The currently bound value of the variable, or null.
- See Also:
-
setVariableValue
Set a variable findingSet the value of a named variable.
- Parameters:
name- The name of the variable to bind to the valuevalue- The value to bind to the variable name.
-