Enum Class NodeType

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

public enum NodeType extends Enum<NodeType>
The values that can be used to distinguish different kind of nodes, such that HTML element, text, attribute, from each other.
  • Enum Constant Details

    • ELEMENT_NODE

      public static final NodeType ELEMENT_NODE
      Represents an element node such as <p> or <div>.
    • ATTRIBUTE_NODE

      public static final NodeType ATTRIBUTE_NODE
      An attribute of the HTML element.
    • TEXT_NODE

      public static final NodeType TEXT_NODE
      The actual text of the HTML element or the attribute.
    • C_DATA_SECTION_NODE

      public static final NodeType C_DATA_SECTION_NODE
      A [CDATA] section.
    • PROCESSING_INSTRUCTIONS_NODE

      public static final NodeType PROCESSING_INSTRUCTIONS_NODE
      A `ProcessingInstruction of an XML document such as <?xml-stylesheet ... ?> declaration.
    • COMMENT_NODE

      public static final NodeType COMMENT_NODE
      A content between the <!-- and --> statements.
    • DOCUMENT_NODE

      public static final NodeType DOCUMENT_NODE
      A document node.
    • DOCUMENT_TYPE_NODE

      public static final NodeType DOCUMENT_TYPE_NODE
      A document type node. For example, <!DOCTYPE html> for HTML5 documents.
    • DOCUMENT_FRAGMENT_NODE

      public static final NodeType DOCUMENT_FRAGMENT_NODE
      A segment of the document structure.
  • Method Details

    • values

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