org.exolab.adaptx.xpath

Class VariableSet

Implemented Interfaces:
java.io.Serializable
Known Direct Subclasses:
VariableSetImpl

public abstract class VariableSet
extends java.lang.Object
implements java.io.Serializable

An abstract class which allows the use of variables when evaluating XPath expressions. A variable is a binding between a string name and an XPathResult.

Version:
$Revision: 1.1.1.1 $

Author:
Keith Visco

See Also:
XPathResult, XPathExpression, Serialized Form

Method Summary

XPathResult
getVariable(String name)
Returns the value of a variable.

Method Details

getVariable

public XPathResult getVariable(String name)
Returns the value of a variable. Returns null if a variable with this name was not found in this variable bindings.

Parameters:
name - The variable name

Returns:
The variable's value as an XPathResult, or null