javax.xml.xpath

Interface XPathExpression

public interface XPathExpression

An XPath expression.

Since: 1.3

Method Summary
Objectevaluate(Object item, QName returnType)
Evaluates this expression against the specified context.
Stringevaluate(Object item)
Evaluates this expression against the specified context, returning the result as a string.
Objectevaluate(InputSource source, QName returnType)
Evaluates this expression against the specified context.
Stringevaluate(InputSource source)
Evaluates this expression against the specified context, returning the result as a string.

Method Detail

evaluate

public Object evaluate(Object item, QName returnType)
Evaluates this expression against the specified context.

Parameters: item the evaluation context returnType the desired return type

evaluate

public String evaluate(Object item)
Evaluates this expression against the specified context, returning the result as a string.

Parameters: item the evaluation context

evaluate

public Object evaluate(InputSource source, QName returnType)
Evaluates this expression against the specified context.

Parameters: source the source to load the context from returnType the desired return type

evaluate

public String evaluate(InputSource source)
Evaluates this expression against the specified context, returning the result as a string.

Parameters: source the source to load the context from