Package nu.validator.saxtree
Enum NodeType
- java.lang.Object
-
- java.lang.Enum<NodeType>
-
- nu.validator.saxtree.NodeType
-
-
Enum Constant Summary
Enum Constants Enum Constant 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.
-
Constructor Summary
Constructors Modifier Constructor Description private
NodeType()
-
Method Summary
All Methods Static Methods Concrete Methods 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.
-
-
-
Enum Constant Detail
-
CDATA
public static final NodeType CDATA
A CDATA section.
-
CHARACTERS
public static final NodeType CHARACTERS
A run of characters.
-
COMMENT
public static final NodeType COMMENT
A comment.
-
DOCUMENT
public static final NodeType DOCUMENT
A document.
-
DOCUMENT_FRAGMENT
public static final NodeType DOCUMENT_FRAGMENT
A document fragment.
-
DTD
public static final NodeType DTD
A DTD.
-
ELEMENT
public static final NodeType ELEMENT
An element.
-
ENTITY
public static final NodeType ENTITY
An entity.
-
IGNORABLE_WHITESPACE
public static final NodeType IGNORABLE_WHITESPACE
A run of ignorable whitespace.
-
PROCESSING_INSTRUCTION
public static final NodeType PROCESSING_INSTRUCTION
A processing instruction.
-
SKIPPED_ENTITY
public static final NodeType SKIPPED_ENTITY
A skipped entity.
-
-
Method Detail
-
values
public static NodeType[] values()
Returns an array containing the constants of this enum type, in the order they are 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 are declared
-
valueOf
public static NodeType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-