|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.adaptx.xpath.VariableSet
org.exolab.adaptx.xpath.VariableSetImpl
public final class VariableSetImpl
An implementation of VariableSet which is used to provide variable bindings that can be used when evaluating an XPath expression. Binds an unqualified variable name to an XPath result.
XPathResult
,
XPathExpression
,
Serialized FormConstructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VariableSetImpl()
public VariableSetImpl(VariableSet parent)
parent
- The parent variable binding (may be null)Method Detail |
---|
public void clear()
public XPathResult getVariable(java.lang.String name)
getVariable
in class VariableSet
name
- The variable name
public 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
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |