public enum NodeType extends java.lang.Enum<NodeType>
| Enum Constant | Description |
|---|---|
COMMENT |
The node is a comment (it is a child).
|
DOCUMENT |
The node is a document (it is a parent).
|
ELEMENT |
The node is an element (with attributes, it is a child and a parent).
|
TEXT |
The node is a text content (it is a child).
|
| Modifier and Type | Method | Description |
|---|---|---|
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 DOCUMENT
public static final NodeType COMMENT
public static final NodeType ELEMENT
public static final NodeType TEXT
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 nullCopyright © 2018. All rights reserved.