|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<DoctypeExpectation> nu.validator.htmlparser.common.DoctypeExpectation
public enum DoctypeExpectation
Used for indicating desired behavior with legacy doctypes.
Enum Constant Summary | |
---|---|
AUTO
Treat the doctype required by HTML 5, doctypes with the HTML 4.01 Strict public id and doctypes with the HTML 4.01 Transitional public id and a system id as non-errors. |
|
HTML
Be a pure HTML5 parser. |
|
HTML401_STRICT
Require the HTML 4.01 Transitional public id and a system id. |
|
HTML401_TRANSITIONAL
Require the HTML 4.01 Transitional public id. |
|
NO_DOCTYPE_ERRORS
Never enable HTML4-specific error checks. |
Method Summary | |
---|---|
static DoctypeExpectation |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static DoctypeExpectation[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final DoctypeExpectation HTML
public static final DoctypeExpectation HTML401_TRANSITIONAL
public static final DoctypeExpectation HTML401_STRICT
public static final DoctypeExpectation AUTO
public static final DoctypeExpectation NO_DOCTYPE_ERRORS
DocumentModeHanler
. This mode
in meant for doing surveys on existing content.
Method Detail |
---|
public static DoctypeExpectation[] values()
for (DoctypeExpectation c : DoctypeExpectation.values()) System.out.println(c);
public static DoctypeExpectation valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |