nu.validator.servlet
Enum ParserMode
java.lang.Object
java.lang.Enum<ParserMode>
nu.validator.servlet.ParserMode
- All Implemented Interfaces:
- Serializable, Comparable<ParserMode>
public enum ParserMode
- extends Enum<ParserMode>
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. |
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
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