Package com.teamdev.jxbrowser.dom
Enum Class 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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionRepresents an attribute of the HTML element.Represents a[CDATA]
section.Represents a content between between the<!--
and-->
statements.Represents a segment of the document structure.Represents a document node.Represents a document type node.Represents an element node such as<p>
or<div>
.Reserved value.Represents aProcessingInstruction
of an XML document such as<?xml-stylesheet ... ?>
declaration.Represents the actual text of the HTML element or the attribute. -
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Represents an attribute of the HTML element.static final int
Represents a[CDATA]
section.static final int
Represents a content between between the<!--
and-->
statements.static final int
Represents a segment of the document structure.static final int
Represents a document node.static final int
Represents a document type node.static final int
Represents an element node such as<p>
or<div>
.static final int
Reserved value.static final int
Represents aProcessingInstruction
of an XML document such as<?xml-stylesheet ... ?>
declaration.static final int
Represents the actual text of the HTML element or the attribute. -
Method Summary
Modifier and TypeMethodDescriptionstatic NodeType
forNumber
(int value) static final com.google.protobuf.Descriptors.EnumDescriptor
final com.google.protobuf.Descriptors.EnumDescriptor
final int
final com.google.protobuf.Descriptors.EnumValueDescriptor
static com.google.protobuf.Internal.EnumLiteMap<NodeType>
static NodeType
valueOf
(int value) Deprecated.static NodeType
valueOf
(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.static NodeType
Returns the enum constant of this class with the specified name.static NodeType[]
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
-
NODE_TYPE_UNSPECIFIED
Reserved value. -
ELEMENT_NODE
Represents an element node such as<p>
or<div>
. -
ATTRIBUTE_NODE
Represents an attribute of the HTML element. -
TEXT_NODE
Represents the actual text of the HTML element or the attribute. -
C_DATA_SECTION_NODE
Represents a[CDATA]
section. -
PROCESSING_INSTRUCTIONS_NODE
Represents aProcessingInstruction
of an XML document such as<?xml-stylesheet ... ?>
declaration. -
COMMENT_NODE
Represents a content between between the<!--
and-->
statements. -
DOCUMENT_NODE
Represents a document node. -
DOCUMENT_TYPE_NODE
Represents a document type node. For example,<!DOCTYPE html>
for HTML5 documents. -
DOCUMENT_FRAGMENT_NODE
Represents a segment of the document structure. -
UNRECOGNIZED
-
-
Field Details
-
NODE_TYPE_UNSPECIFIED_VALUE
public static final int NODE_TYPE_UNSPECIFIED_VALUEReserved value.- See Also:
-
ELEMENT_NODE_VALUE
public static final int ELEMENT_NODE_VALUERepresents an element node such as<p>
or<div>
.- See Also:
-
ATTRIBUTE_NODE_VALUE
public static final int ATTRIBUTE_NODE_VALUERepresents an attribute of the HTML element.- See Also:
-
TEXT_NODE_VALUE
public static final int TEXT_NODE_VALUERepresents 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_VALUERepresents a[CDATA]
section.- See Also:
-
PROCESSING_INSTRUCTIONS_NODE_VALUE
public static final int PROCESSING_INSTRUCTIONS_NODE_VALUERepresents aProcessingInstruction
of an XML document such as<?xml-stylesheet ... ?>
declaration.- See Also:
-
COMMENT_NODE_VALUE
public static final int COMMENT_NODE_VALUERepresents a content between between the<!--
and-->
statements.- See Also:
-
DOCUMENT_NODE_VALUE
public static final int DOCUMENT_NODE_VALUERepresents a document node.- See Also:
-
DOCUMENT_TYPE_NODE_VALUE
public static final int DOCUMENT_TYPE_NODE_VALUERepresents a document type node. For example,<!DOCTYPE html>
for HTML5 documents.- See Also:
-
DOCUMENT_FRAGMENT_NODE_VALUE
public static final int DOCUMENT_FRAGMENT_NODE_VALUERepresents a segment of the document structure.- See Also:
-
-
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
-
getNumber
public final int getNumber()- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
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 nameNullPointerException
- if the argument is null
-
forNumber
- Parameters:
value
- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
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:
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 nameNullPointerException
- if the argument is null
-