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 expression
- item- the expression context
evaluate
public Object evaluate(String expression,
                       Object item,
                       QName returnType)
            throws XPathExpressionException Evaluates an expression.
- evaluate in interface XPath
- expression- the expression
- item- the expression context
- returnType- 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 expression
- source- 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 expression
- source- the source to load the expression context from
- returnType- the desired return type
reset
public void reset()
 Resets the environment.
- reset in interface XPath