public enum NodeType extends Enum<NodeType>
Enum Constant and Description |
---|
CDATA
A CDATA section.
|
CHARACTERS
A run of characters.
|
COMMENT
A comment.
|
DOCUMENT
A document.
|
DOCUMENT_FRAGMENT
A document fragment.
|
DTD
A DTD.
|
ELEMENT
An element.
|
ENTITY
An entity.
|
IGNORABLE_WHITESPACE
A run of ignorable whitespace.
|
PROCESSING_INSTRUCTION
A processing instruction.
|
SKIPPED_ENTITY
A skipped entity.
|
Modifier and Type | Method and Description |
---|---|
static NodeType |
valueOf(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 CDATA
public static final NodeType CHARACTERS
public static final NodeType COMMENT
public static final NodeType DOCUMENT
public static final NodeType DOCUMENT_FRAGMENT
public static final NodeType DTD
public static final NodeType ELEMENT
public static final NodeType ENTITY
public static final NodeType IGNORABLE_WHITESPACE
public static final NodeType PROCESSING_INSTRUCTION
public static final NodeType SKIPPED_ENTITY
public static NodeType[] values()
for (NodeType c : NodeType.values()) System.out.println(c);
public static NodeType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2017. All rights reserved.