public enum XPathResultType extends java.lang.Enum<XPathResultType>
Enum Constant and Description |
---|
ANY_TYPE |
ANY_UNORDERED_NODE_TYPE |
BOOLEAN_TYPE |
FIRST_ORDERED_NODE_TYPE |
NUMBER_TYPE |
ORDERED_NODE_ITERATOR_TYPE |
ORDERED_NODE_SNAPSHOT_TYPE |
STRING_TYPE |
UNORDERED_NODE_ITERATOR_TYPE |
UNORDERED_NODE_SNAPSHOT_TYPE |
Modifier and Type | Method and Description |
---|---|
static XPathResultType |
from(int value) |
int |
getValue() |
static XPathResultType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
返回具有指定名称的此类型的枚举常量。 |
static XPathResultType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
以声明顺序返回包含此枚举类型的常量的数组。 |
public static final XPathResultType ANY_TYPE
public static final XPathResultType NUMBER_TYPE
public static final XPathResultType STRING_TYPE
public static final XPathResultType BOOLEAN_TYPE
public static final XPathResultType UNORDERED_NODE_ITERATOR_TYPE
public static final XPathResultType ORDERED_NODE_ITERATOR_TYPE
public static final XPathResultType UNORDERED_NODE_SNAPSHOT_TYPE
public static final XPathResultType ORDERED_NODE_SNAPSHOT_TYPE
public static final XPathResultType ANY_UNORDERED_NODE_TYPE
public static final XPathResultType FIRST_ORDERED_NODE_TYPE
public static XPathResultType[] values()
for (XPathResultType c : XPathResultType.values()) System.out.println(c);
public static XPathResultType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
-要返回的枚举常量的名称。
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified name
java.lang.NullPointerException
- if the argument is null
public static XPathResultType from(int value)
public int getValue()