nu.validator.servlet
Enum ParserMode

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

public enum ParserMode
extends Enum<ParserMode>


Enum Constant Summary
AUTO
           
HTML
           
HTML_AUTO
           
HTML401_STRICT
           
HTML401_TRANSITIONAL
           
XML_EXTERNAL_ENTITIES_NO_VALIDATION
           
XML_NO_EXTERNAL_ENTITIES
           
 
Method Summary
static ParserMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ParserMode[] 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

HTML_AUTO

public static final ParserMode HTML_AUTO

HTML401_TRANSITIONAL

public static final ParserMode HTML401_TRANSITIONAL

HTML401_STRICT

public static final ParserMode HTML401_STRICT

HTML

public static final ParserMode HTML

XML_NO_EXTERNAL_ENTITIES

public static final ParserMode XML_NO_EXTERNAL_ENTITIES

XML_EXTERNAL_ENTITIES_NO_VALIDATION

public static final ParserMode XML_EXTERNAL_ENTITIES_NO_VALIDATION

AUTO

public static final ParserMode AUTO
Method Detail

values

public static final ParserMode[] 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(ParserMode c : ParserMode.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static ParserMode 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