XPathEvaluationResult interface represents the result of the
evaluation of an XPath expression within the context of a particular node.
The evaluation of an XPath expression can result in various result types as
defined in XML Path Language (XPath) Version 1.0.
| Modifier and Type | Class and Description |
|---|---|
| public static enum | XPathEvaluationResult.
XPathResultType represents possible return types of an XPath evaluation. |
| Modifier and Type | Method and Description |
|---|---|
| public XPathEvaluationResult. | |
| public T | Returns: The value of the result.Returns the value of the result as the type |
| type | back to summary |
|---|---|
| public XPathEvaluationResult. Return the result type as an enum specified by
| |
| value | back to summary |
|---|---|
| public T value() Returns the value of the result as the type
| |
XPathConstants and class types used in the generic methods.
| Modifier and Type | Field and Description |
|---|---|
| public static final XPathEvaluationResult. | ANY
Any type that represents any of the 5 other types listed below. |
| public static final XPathEvaluationResult. | BOOLEAN
The XPath 1.0 boolean data type. |
| pack-priv final Class | |
| public static final XPathEvaluationResult. | NODE
The XPath 1.0 Node data type. |
| public static final XPathEvaluationResult. | NODESET
The XPath 1.0 NodeSet data type. |
| public static final XPathEvaluationResult. | NUMBER
The XPath 1.0 Number data type. |
| pack-priv final QName | |
| public static final XPathEvaluationResult. | STRING
The XPath 1.0 String data type. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | Returns: true if the argument is not null and is a class type or accepted subtype that matches that this type represents, false otherwise.class type clsType)Compares this type to the specified class type. |
| public static QName | Returns: the QName type that matches with the specified class type, null if there is no matcha class type that the enum type supports clsType)Returns the QName type as specified in |
| private boolean | Returns: true if class type is an accepted subtype of Number, false otherwiseclass type clsType)Compares the specified class type to accepted subtypes of number. |
| public static XPathEvaluationResult. | |
| public static XPathEvaluationResult. |
| ANY | back to summary |
|---|---|
| public static final XPathEvaluationResult. Any type that represents any of the 5 other types listed below.
Maps to | |
| BOOLEAN | back to summary |
|---|---|
| public static final XPathEvaluationResult. The XPath 1.0 boolean data type. Maps to Java | |
| clsType | back to summary |
|---|---|
| pack-priv final Class<?> clsType | |
| NODE | back to summary |
|---|---|
| public static final XPathEvaluationResult. The XPath 1.0 Node data type. Maps to | |
| NODESET | back to summary |
|---|---|
| public static final XPathEvaluationResult. The XPath 1.0 NodeSet data type. Maps to | |
| NUMBER | back to summary |
|---|---|
| public static final XPathEvaluationResult. The XPath 1.0 Number data type. Maps to Java | |
| qnameType | back to summary |
|---|---|
| pack-priv final QName qnameType | |
| STRING | back to summary |
|---|---|
| public static final XPathEvaluationResult. The XPath 1.0 String data type. Maps to Java | |
| XPathResultType | back to summary |
|---|---|
| private XPathResultType(QName qnameType, Class<?> clsType) | |
| equalsClassType | back to summary |
|---|---|
| private boolean equalsClassType(Class<?> clsType) Compares this type to the specified class type.
| |
| getQNameType | back to summary |
|---|---|
| public static QName getQNameType(Class<?> clsType) Returns the QName type as specified in | |
| isAcceptedNumberSubType | back to summary |
|---|---|
| private boolean isAcceptedNumberSubType(Class<?> clsType) Compares the specified class type to accepted subtypes of number.
| |
| valueOf | back to summary |
|---|---|
| public static XPathEvaluationResult. | |
| values | back to summary |
|---|---|
| public static XPathEvaluationResult. | |