Package | Description |
---|---|
javax.xml.xpath |
This package provides an object-model neutral API for the
evaluation of XPath expressions and access to the evaluation
environment.
|
Modifier and Type | Class | Description |
---|---|---|
class |
XPathFunctionException |
XPathFunctionException represents an error with an XPath function. |
Modifier and Type | Method | Description |
---|---|---|
XPathExpression |
XPath.compile(String expression) |
Compile an XPath expression for later evaluation.
|
String |
XPath.evaluate(String expression,
Object item) |
Evaluate an XPath expression in the specified context and return the result as a
String . |
Object |
XPath.evaluate(String expression,
Object item,
QName returnType) |
Evaluate an
XPath expression in the specified context and
return the result as the specified type. |
String |
XPath.evaluate(String expression,
InputSource source) |
Evaluate an XPath expression in the context of the specified
InputSource
and return the result as a String . |
Object |
XPath.evaluate(String expression,
InputSource source,
QName returnType) |
Evaluate an XPath expression in the context of the specified
InputSource
and return the result as the specified type. |
String |
XPathExpression.evaluate(Object item) |
Evaluate the compiled XPath expression in the specified context and return the result as a
String . |
Object |
XPathExpression.evaluate(Object item,
QName returnType) |
Evaluate the compiled XPath expression in the specified context and return the result as the specified type.
|
String |
XPathExpression.evaluate(InputSource source) |
Evaluate the compiled XPath expression in the context
of the specified
InputSource and return the result as a
String . |
Object |
XPathExpression.evaluate(InputSource source,
QName returnType) |
Evaluate the compiled XPath expression in the context
of the specified
InputSource and return the result as the
specified type. |
default XPathEvaluationResult<?> |
XPath.evaluateExpression(String expression,
Object item) |
Evaluate an XPath expression in the specified context.
|
default <T> T |
XPath.evaluateExpression(String expression,
Object item,
Class<T> type) |
Evaluate an XPath expression in the specified context and return
the result with the type specified through the
class type |
default XPathEvaluationResult<?> |
XPath.evaluateExpression(String expression,
InputSource source) |
Evaluate an XPath expression in the specified context.
|
default <T> T |
XPath.evaluateExpression(String expression,
InputSource source,
Class<T> type) |
Evaluate an XPath expression in the context of the specified
source
and return the result as specified. |
default XPathEvaluationResult<?> |
XPathExpression.evaluateExpression(Object item) |
Evaluate the compiled XPath expression in the specified context.
|
default <T> T |
XPathExpression.evaluateExpression(Object item,
Class<T> type) |
Evaluate the compiled XPath expression in the specified context, and return
the result with the type specified through the
class type . |
default XPathEvaluationResult<?> |
XPathExpression.evaluateExpression(InputSource source) |
Evaluate the compiled XPath expression in the specified context.
|
default <T> T |
XPathExpression.evaluateExpression(InputSource source,
Class<T> type) |
Evaluate the compiled XPath expression in the specified context,
and return the result with the type specified through the
class type |
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-internal+0-adhoc.mlchung.jdk9-jdeps