gnu.xml.xpath
Class XPathImpl
- XPath
public class XPathImpl
extends java.lang.Object
JAXP XPath implementation.
evaluate
public String evaluate(String expression,
Object item)
throws XPathExpressionException Evaluates an expression and returns the result as a string.
- evaluate in interface XPath
expression - the expressionitem - the expression context
evaluate
public Object evaluate(String expression,
Object item,
QName returnType)
throws XPathExpressionException Evaluates an expression.
- evaluate in interface XPath
expression - the expressionitem - the expression contextreturnType - the desired return type
evaluate
public String evaluate(String expression,
InputSource source)
throws XPathExpressionException Evaluates an expression and returns the result as a string.
- evaluate in interface XPath
expression - the expressionsource - the source to load the expression context from
evaluate
public Object evaluate(String expression,
InputSource source,
QName returnType)
throws XPathExpressionException Evaluates an expression.
- evaluate in interface XPath
expression - the expressionsource - the source to load the expression context fromreturnType - the desired return type
reset
public void reset()
Resets the environment.
- reset in interface XPath