Package com.teamdev.jxbrowser.dom
Enum Class XPathResultType
- All Implemented Interfaces:
Serializable,Comparable<XPathResultType>,Constable
Represents the XPath result types.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe result type is not set.The result represents a single node matching the XPath expression.The result contains a single boolean value.The result represents the first node in the document matching the XPath expression.The result contains a single number.The result represents a set of all nodes matching the XPath expression.The result represents the snapshots of all nodes matching the XPath expression.The result contains a single string.The result represents a set of all nodes matching the XPath expression.The result represents the snapshots of all nodes matching the XPath expression. -
Method Summary
Modifier and TypeMethodDescriptionstatic XPathResultTypeReturns the enum constant of this class with the specified name.static XPathResultType[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
ANY
The result type is not set.In this case, the type is a natural type of the evaluation result.
-
NUMBER
The result contains a single number. -
STRING
The result contains a single string. -
BOOLEAN
The result contains a single boolean value. -
UNORDERED_NODE_ITERATOR
The result represents a set of all nodes matching the XPath expression.The order of nodes in the result is not defined.
-
ORDERED_NODE_ITERATOR
The result represents a set of all nodes matching the XPath expression.The nodes in the result are in the same order that they appear in the document.
-
UNORDERED_NODE_SNAPSHOT
The result represents the snapshots of all nodes matching the XPath expression.The order of the nodes in the result is not defined.
-
ORDERED_NODE_SNAPSHOT
The result represents the snapshots of all nodes matching the XPath expression.The nodes in the result are in the same order that they appear in the document.
-
ANY_UNORDERED_NODE
The result represents a single node matching the XPath expression.The node is not necessarily the first node in the document that matches the expression.
-
FIRST_ORDERED_NODE
The result represents the first node in the document matching the XPath expression.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-