|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.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(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'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 |
|---|
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 final DoctypeExpectation[] values()
for(DoctypeExpectation c : DoctypeExpectation.values())
System.out.println(c);
public static DoctypeExpectation valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||