@Generated(value="Generated by the protocol buffer compiler") public enum NodeType extends java.lang.Enum<NodeType> implements com.google.protobuf.ProtocolMessageEnum
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
|
NODE_TYPE_UNSPECIFIED
Reserved value.
|
PROCESSING_INSTRUCTIONS_NODE
Represents a ProcessingInstruction of an XML document such as {@code
|
TEXT_NODE
Represents the actual text of the HTML element or the attribute.
|
UNRECOGNIZED |
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 |
NODE_TYPE_UNSPECIFIED_VALUE
Reserved value.
|
static int |
PROCESSING_INSTRUCTIONS_NODE_VALUE
Represents a ProcessingInstruction of an XML document such as {@code
|
static int |
TEXT_NODE_VALUE
Represents the actual text of the HTML element or the attribute.
|
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 com.google.protobuf.Internal.EnumLiteMap<NodeType> |
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 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 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 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 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()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
@Deprecated public static NodeType valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static NodeType forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<NodeType> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static NodeType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)