net.sf.swan.xpath
Class MatchContext
java.lang.Object
|
+--net.sf.swan.xpath.pattern.Match
|
+--net.sf.swan.xpath.MatchContext
- public final class MatchContext
- extends Match
Component to iterate through matches and provide thread-specific
variable values for expression evaluation.
Method Summary |
java.lang.Object |
getVariableValue(java.lang.String qName)
Retrieves the variable with the specified qualified name. |
java.lang.Object |
getVariableValue(java.lang.String namespaceUri,
java.lang.String localName)
Retrieves the variable with the specified namespace and local name. |
void |
putVariableValue(java.lang.String qName,
java.lang.Object value)
|
void |
putVariableValue(java.lang.String namespaceUri,
java.lang.String localName,
java.lang.Object value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getVariableValue
public java.lang.Object getVariableValue(java.lang.String namespaceUri,
java.lang.String localName)
- Retrieves the variable with the specified namespace and local name.
- Returns:
- the variable value, or
null
if the variable
has not been set
getVariableValue
public java.lang.Object getVariableValue(java.lang.String qName)
- Retrieves the variable with the specified qualified name.
- Returns:
- the variable value, or
null
if the variable
has not been set
putVariableValue
public void putVariableValue(java.lang.String namespaceUri,
java.lang.String localName,
java.lang.Object value)
putVariableValue
public void putVariableValue(java.lang.String qName,
java.lang.Object value)