public enum NodeType extends java.lang.Enum<NodeType>
Protobuf enum teamdev.browsercore.dom.NodeType
Enum Constant and Description |
---|
ATTRIBUTE_NODE
Represents an attribute of the HTML element.
|
C_DATA_SECTION_NODE
Represents a
[CDATA] section. |
COMMENT_NODE
Represents a content between between the
<!-- and --> statements. |
DOCUMENT_FRAGMENT_NODE
Represents a segment of the document structure.
|
DOCUMENT_NODE
Represents a document node.
|
DOCUMENT_TYPE_NODE
Represents a document type node.
|
ELEMENT_NODE
Represents an element node such as {@code
|
ENTITY_NODE
Represents an XML
<!ENTITY ...> node. |
ENTITY_REFERENCE_NODE
Represents an XML entity reference node.
|
NODE_TYPE_UNSPECIFIED
Reserved value.
|
NOTATION_NODE
Represents an XML
<!NOTATION ...> node. |
PROCESSING_INSTRUCTIONS_NODE
Represents a ProcessingInstruction of an XML document such as {@code
|
SHADOW_ROOT_NODE
Represents a shadow root node.
|
TEXT_NODE
Represents the actual text of the HTML element or the attribute.
|
UNRECOGNIZED |
X_PATH_NAMESPACE_NODE
Represents an XPATH namespace node.
|
Modifier and Type | Field and Description |
---|---|
static int |
ATTRIBUTE_NODE_VALUE
Represents an attribute of the HTML element.
|
static int |
C_DATA_SECTION_NODE_VALUE
Represents a
[CDATA] section. |
static int |
COMMENT_NODE_VALUE
Represents a content between between the
<!-- and --> statements. |
static int |
DOCUMENT_FRAGMENT_NODE_VALUE
Represents a segment of the document structure.
|
static int |
DOCUMENT_NODE_VALUE
Represents a document node.
|
static int |
DOCUMENT_TYPE_NODE_VALUE
Represents a document type node.
|
static int |
ELEMENT_NODE_VALUE
Represents an element node such as {@code
|
static int |
ENTITY_NODE_VALUE
Represents an XML
<!ENTITY ...> node. |
static int |
ENTITY_REFERENCE_NODE_VALUE
Represents an XML entity reference node.
|
static int |
NODE_TYPE_UNSPECIFIED_VALUE
Reserved value.
|
static int |
NOTATION_NODE_VALUE
Represents an XML
<!NOTATION ...> node. |
static int |
PROCESSING_INSTRUCTIONS_NODE_VALUE
Represents a ProcessingInstruction of an XML document such as {@code
|
static int |
SHADOW_ROOT_NODE_VALUE
Represents a shadow root node.
|
static int |
TEXT_NODE_VALUE
Represents the actual text of the HTML element or the attribute.
|
static int |
X_PATH_NAMESPACE_NODE_VALUE
Represents an XPATH namespace node.
|
Modifier and Type | Method and Description |
---|---|
static NodeType |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static <any> |
internalGetValueMap() |
static NodeType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static NodeType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static NodeType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NodeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NodeType NODE_TYPE_UNSPECIFIED
public static final NodeType ELEMENT_NODE
<p>
or <div>
.
public static final NodeType ATTRIBUTE_NODE
public static final NodeType TEXT_NODE
public static final NodeType C_DATA_SECTION_NODE
[CDATA]
section.
public static final NodeType ENTITY_REFERENCE_NODE
public static final NodeType ENTITY_NODE
<!ENTITY ...>
node.
public static final NodeType PROCESSING_INSTRUCTIONS_NODE
ProcessingInstruction
of an XML document such as <?xml-stylesheet ... ?>
declaration.
public static final NodeType COMMENT_NODE
<!--
and -->
statements.
public static final NodeType DOCUMENT_NODE
public static final NodeType DOCUMENT_TYPE_NODE
<!DOCTYPE html>
for HTML5 documents.
public static final NodeType DOCUMENT_FRAGMENT_NODE
public static final NodeType NOTATION_NODE
<!NOTATION ...>
node.
public static final NodeType X_PATH_NAMESPACE_NODE
public static final NodeType SHADOW_ROOT_NODE
public static final NodeType UNRECOGNIZED
public static final int NODE_TYPE_UNSPECIFIED_VALUE
public static final int ELEMENT_NODE_VALUE
<p>
or <div>
.
public static final int ATTRIBUTE_NODE_VALUE
public static final int TEXT_NODE_VALUE
public static final int C_DATA_SECTION_NODE_VALUE
[CDATA]
section.
public static final int ENTITY_REFERENCE_NODE_VALUE
public static final int ENTITY_NODE_VALUE
<!ENTITY ...>
node.
public static final int PROCESSING_INSTRUCTIONS_NODE_VALUE
ProcessingInstruction
of an XML document such as <?xml-stylesheet ... ?>
declaration.
public static final int COMMENT_NODE_VALUE
<!--
and -->
statements.
public static final int DOCUMENT_NODE_VALUE
public static final int DOCUMENT_TYPE_NODE_VALUE
<!DOCTYPE html>
for HTML5 documents.
public static final int DOCUMENT_FRAGMENT_NODE_VALUE
public static final int NOTATION_NODE_VALUE
<!NOTATION ...>
node.
public static final int X_PATH_NAMESPACE_NODE_VALUE
public static final int SHADOW_ROOT_NODE_VALUE
public static NodeType[] values()
for (NodeType c : NodeType.values()) System.out.println(c);
public static NodeType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final int getNumber()
@Deprecated public static NodeType valueOf(int value)
forNumber(int)
instead.public static NodeType forNumber(int value)
public static <any> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static NodeType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)