javax.xml.xpath
public interface XPath
Since: 1.3
Method Summary | |
---|---|
XPathExpression | compile(String expression)
Compiles an XPath expression for future evaluation. |
Object | evaluate(String expression, Object item, QName returnType)
Evaluates an expression. |
String | evaluate(String expression, Object item)
Evaluates an expression and returns the result as a string. |
Object | evaluate(String expression, InputSource source, QName returnType)
Evaluates an expression. |
String | evaluate(String expression, InputSource source)
Evaluates an expression and returns the result as a string. |
NamespaceContext | getNamespaceContext() |
XPathFunctionResolver | getXPathFunctionResolver() |
XPathVariableResolver | getXPathVariableResolver() |
void | reset()
Resets the environment. |
void | setNamespaceContext(NamespaceContext nsContext) |
void | setXPathFunctionResolver(XPathFunctionResolver resolver) |
void | setXPathVariableResolver(XPathVariableResolver resolver) |
Parameters: expression the expression
Parameters: expression the expression item the expression context returnType the desired return type
Parameters: expression the expression item the expression context
Parameters: expression the expression source the source to load the expression context from returnType the desired return type
Parameters: expression the expression source the source to load the expression context from