Enum Class XPathResultType

java.lang.Object
java.lang.Enum<XPathResultType>
com.teamdev.jxbrowser.dom.XPathResultType
All Implemented Interfaces:
Serializable, Comparable<XPathResultType>, Constable

public enum XPathResultType extends Enum<XPathResultType>
Represents the XPath result types.
  • Enum Constant Details

    • ANY

      public static final XPathResultType ANY
      The result type is not set.

      In this case, the type is a natural type of the evaluation result.

    • NUMBER

      public static final XPathResultType NUMBER
      The result contains a single number.
    • STRING

      public static final XPathResultType STRING
      The result contains a single string.
    • BOOLEAN

      public static final XPathResultType BOOLEAN
      The result contains a single boolean value.
    • UNORDERED_NODE_ITERATOR

      public static final XPathResultType 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

      public static final XPathResultType 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

      public static final XPathResultType 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

      public static final XPathResultType 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

      public static final XPathResultType 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

      public static final XPathResultType FIRST_ORDERED_NODE
      The result represents the first node in the document matching the XPath expression.
  • Method Details

    • values

      public static XPathResultType[] 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

      public static XPathResultType valueOf(String name)
      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 name
      NullPointerException - if the argument is null