nu.validator.saxtree
Enum NodeType
java.lang.Object
java.lang.Enum<NodeType>
nu.validator.saxtree.NodeType
- All Implemented Interfaces:
- Serializable, Comparable<NodeType>
public enum NodeType
- extends Enum<NodeType>
Method Summary |
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're declared. |
CDATA
public static final NodeType CDATA
CHARACTERS
public static final NodeType CHARACTERS
COMMENT
public static final NodeType COMMENT
DOCUMENT
public static final NodeType DOCUMENT
DOCUMENT_FRAGMENT
public static final NodeType DOCUMENT_FRAGMENT
DTD
public static final NodeType DTD
ELEMENT
public static final NodeType ELEMENT
ENTITY
public static final NodeType ENTITY
IGNORABLE_WHITESPACE
public static final NodeType IGNORABLE_WHITESPACE
PROCESSING_INSTRUCTION
public static final NodeType PROCESSING_INSTRUCTION
SKIPPED_ENTITY
public static final NodeType SKIPPED_ENTITY
values
public static final NodeType[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(NodeType c : NodeType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static NodeType valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name