public class DefaultVariableContext extends java.lang.Object implements VariableContext
A VariableContext
implementation based upon a java.util.HashMap for simple
name-value mappings.
| Constructor and Description |
|---|
DefaultVariableContext() |
| Modifier and Type | Method and 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
|
public java.lang.Object getVariableValue(java.lang.String name)
Retrieve the currently bound value of the named variable, or null if no such binding exists.
getVariableValue in interface VariableContextname - The name of the variable sought.ContextSupport.getVariableValue(java.lang.String),
ContextSupport.setVariableContext(com.werken.xpath.VariableContext)public void setVariableValue(java.lang.String name,
java.lang.Object value)
Set the value of a named variable.
name - The name of the variable to bind to the valuevalue - The value to bind to the variable name.Copyright ? 2000 bob mcwhirter and The Werken & Sons Company. All Rights Reserved.