public final class VariableSetImpl extends VariableSet
XPathResult
,
XPathExpression
,
Serialized FormConstructor | Description |
---|---|
VariableSetImpl() |
Constructs a new empty set of variable bindings.
|
VariableSetImpl(VariableSet parent) |
Constructs a new empty variable binding with reference to
a parent variable binding.
|
Modifier and Type | Method | Description |
---|---|---|
void |
clear() |
Removes the current variable bindings from this VariableSet
|
XPathResult |
getVariable(java.lang.String name) |
Returns the value of a variable.
|
void |
setVariable(java.lang.String name,
XPathResult value) |
Binds the XPath result to the variable name.
|
public VariableSetImpl()
public VariableSetImpl(VariableSet parent)
parent
- The parent variable binding (may be null)public void clear()
public XPathResult getVariable(java.lang.String name)
getVariable
in class VariableSet
name
- The variable namepublic void setVariable(java.lang.String name, XPathResult value)
getVariable(java.lang.String)
using
the same variable name.name
- The variable namevalue
- The variable's value