nu.validator.saxtree
Enum NodeType

java.lang.Object
  extended by java.lang.Enum<NodeType>
      extended by nu.validator.saxtree.NodeType
All Implemented Interfaces:
Serializable, Comparable<NodeType>

public enum NodeType
extends Enum<NodeType>


Enum Constant Summary
CDATA
           
CHARACTERS
           
COMMENT
           
DOCUMENT
           
DOCUMENT_FRAGMENT
           
DTD
           
ELEMENT
           
ENTITY
           
IGNORABLE_WHITESPACE
           
PROCESSING_INSTRUCTION
           
SKIPPED_ENTITY
           
 
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

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