| Enum Constant and Description |
|---|
ATTRIBUTE_NODE
The node is an
Attr. |
CDATA_SECTION_NODE
The node is a
CDATASection. |
COMMENT_NODE
The node is a
Comment. |
DOCUMENT_FRAGMENT_NODE
The node is a
DocumentFragment. |
DOCUMENT_NODE
The node is a
Document. |
DOCUMENT_TYPE_NODE
The node is a
DocumentType. |
ELEMENT_NODE
The node is an
Element. |
ENTITY_NODE
The node is an
Entity. |
ENTITY_REFERENCE_NODE
The node is an
EntityReference. |
NOTATION_NODE
The node is a
Notation. |
PROCESSING_INSTRUCTION_NODE
The node is a
ProcessingInstruction. |
TEXT_NODE
The node is a
Text node. |
UNDEFINED
The UNDEFINED is a NullObject and is returned when nothing matches to the other one.
|
| Modifier and Type | Method and Description |
|---|---|
static NodeType |
getNodeType(org.w3c.dom.Node node)
Gets the node type from the given node.
|
static NodeType |
getNodeType(short value)
Gets the node type from the given short value.
|
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 ATTRIBUTE_NODE
Attr.public static final NodeType CDATA_SECTION_NODE
CDATASection.public static final NodeType COMMENT_NODE
Comment.public static final NodeType DOCUMENT_FRAGMENT_NODE
DocumentFragment.public static final NodeType DOCUMENT_NODE
Document.public static final NodeType DOCUMENT_TYPE_NODE
DocumentType.public static final NodeType ELEMENT_NODE
Element.public static final NodeType ENTITY_NODE
Entity.public static final NodeType ENTITY_REFERENCE_NODE
EntityReference.public static final NodeType NOTATION_NODE
Notation.public static final NodeType PROCESSING_INSTRUCTION_NODE
ProcessingInstruction.public static final NodeType TEXT_NODE
Text node.public static final NodeType UNDEFINED
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 static NodeType getNodeType(org.w3c.dom.Node node)
node - the nodepublic static NodeType getNodeType(short value)
value - the short value.