Package com.werken.xpath
Class DefaultVariableContext
- java.lang.Object
-
- com.werken.xpath.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)
-
-
Constructor Summary
Constructors Constructor Description DefaultVariableContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getVariableValue(java.lang.String name)
Resolve a variable bindingvoid
setVariableValue(java.lang.String name, java.lang.Object value)
Set a variable finding
-
-
-
Method Detail
-
getVariableValue
public java.lang.Object getVariableValue(java.lang.String name)
Resolve a variable bindingRetrieve the currently bound value of the named variable, or null if no such binding exists.
- Specified by:
getVariableValue
in interfaceVariableContext
- Parameters:
name
- The name of the variable sought.- Returns:
- The currently bound value of the variable, or null.
- See Also:
ContextSupport.getVariableValue(java.lang.String)
,ContextSupport.setVariableContext(com.werken.xpath.VariableContext)
-
setVariableValue
public void setVariableValue(java.lang.String name, java.lang.Object value)
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.
-
-