public static enum XPathEvaluationResult.XPathResultType extends Enum<XPathEvaluationResult.XPathResultType>
XPathConstants
and class types used in the generic methods.Enum Constant and Description |
---|
ANY
Any type that represents any of the 5 other types listed below.
|
BOOLEAN
The XPath 1.0 boolean data type.
|
NODE
The XPath 1.0 NodeSet data type.
|
NODESET
The XPath 1.0 NodeSet data type.
|
NUMBER
The XPath 1.0 Number data type.
|
STRING
The XPath 1.0 String data type.
|
Modifier and Type | Method and Description |
---|---|
static QName |
getQNameType(Class<?> clsType)
Returns the QName type as specified in
XPathConstants that
corresponds to the specified class type. |
static XPathEvaluationResult.XPathResultType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static XPathEvaluationResult.XPathResultType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final XPathEvaluationResult.XPathResultType ANY
XPathEvaluationResult
.public static final XPathEvaluationResult.XPathResultType BOOLEAN
Boolean
.public static final XPathEvaluationResult.XPathResultType NUMBER
Number
. Of the
subtypes of Number, only Double, Integer and Long are required.public static final XPathEvaluationResult.XPathResultType STRING
String
.public static final XPathEvaluationResult.XPathResultType NODESET
NodeList
.public static final XPathEvaluationResult.XPathResultType NODE
Node
.public static XPathEvaluationResult.XPathResultType[] values()
for (XPathEvaluationResult.XPathResultType c : XPathEvaluationResult.XPathResultType.values()) System.out.println(c);
public static XPathEvaluationResult.XPathResultType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static QName getQNameType(Class<?> clsType)
XPathConstants
that
corresponds to the specified class type.clsType
- a class type that the enum type supports 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, 2016, Oracle and/or its affiliates. All rights reserved.
DRAFT 9-internal+0-2016-01-26-133437.ivan.openjdk9onspinwait