Enum Class NodeType

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

@Generated("Generated by the protocol buffer compiler") public enum NodeType extends Enum<NodeType> implements com.google.protobuf.ProtocolMessageEnum
Represents the values that can be used to distinguish different kind of nodes, such that HTML element, text, attribute, from each other.

  • Enum Constant Details

    • NODE_TYPE_UNSPECIFIED

      public static final NodeType NODE_TYPE_UNSPECIFIED
      Reserved value.

    • 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
      Represents an attribute of the HTML element.

    • TEXT_NODE

      public static final NodeType TEXT_NODE
      Represents the actual text of the HTML element or the attribute.

    • C_DATA_SECTION_NODE

      public static final NodeType C_DATA_SECTION_NODE
      Represents a [CDATA] section.

    • PROCESSING_INSTRUCTIONS_NODE

      public static final NodeType PROCESSING_INSTRUCTIONS_NODE
      Represents a ProcessingInstruction of an XML document such as <?xml-stylesheet ... ?> declaration.

    • COMMENT_NODE

      public static final NodeType COMMENT_NODE
      Represents a content between between the <!-- and --> statements.

    • DOCUMENT_NODE

      public static final NodeType DOCUMENT_NODE
      Represents a document node.

    • DOCUMENT_TYPE_NODE

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

    • DOCUMENT_FRAGMENT_NODE

      public static final NodeType DOCUMENT_FRAGMENT_NODE
      Represents a segment of the document structure.

    • UNRECOGNIZED

      public static final NodeType UNRECOGNIZED
  • Field Details

    • NODE_TYPE_UNSPECIFIED_VALUE

      public static final int NODE_TYPE_UNSPECIFIED_VALUE
      Reserved value.

      See Also:
    • ELEMENT_NODE_VALUE

      public static final int ELEMENT_NODE_VALUE
      Represents an element node such as <p> or <div>.

      See Also:
    • ATTRIBUTE_NODE_VALUE

      public static final int ATTRIBUTE_NODE_VALUE
      Represents an attribute of the HTML element.

      See Also:
    • TEXT_NODE_VALUE

      public static final int TEXT_NODE_VALUE
      Represents the actual text of the HTML element or the attribute.

      See Also:
    • C_DATA_SECTION_NODE_VALUE

      public static final int C_DATA_SECTION_NODE_VALUE
      Represents a [CDATA] section.

      See Also:
    • PROCESSING_INSTRUCTIONS_NODE_VALUE

      public static final int PROCESSING_INSTRUCTIONS_NODE_VALUE
      Represents a ProcessingInstruction of an XML document such as <?xml-stylesheet ... ?> declaration.

      See Also:
    • COMMENT_NODE_VALUE

      public static final int COMMENT_NODE_VALUE
      Represents a content between between the <!-- and --> statements.

      See Also:
    • DOCUMENT_NODE_VALUE

      public static final int DOCUMENT_NODE_VALUE
      Represents a document node.

      See Also:
    • DOCUMENT_TYPE_NODE_VALUE

      public static final int DOCUMENT_TYPE_NODE_VALUE
      Represents a document type node. For example, <!DOCTYPE html> for HTML5 documents.

      See Also:
    • DOCUMENT_FRAGMENT_NODE_VALUE

      public static final int DOCUMENT_FRAGMENT_NODE_VALUE
      Represents a segment of the document structure.

      See Also:
  • 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
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static NodeType valueOf(int value)
      Deprecated.
      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:
      value - 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
    • forNumber

      public static NodeType forNumber(int value)
      Parameters:
      value - The numeric wire value of the corresponding enum entry.
      Returns:
      The enum associated with the given numeric wire value.
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<NodeType> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static NodeType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
      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:
      desc - 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