public enum DoctypeExpectation extends Enum<DoctypeExpectation>
Enum Constant and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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 are declared.
|
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.public static 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 nameNullPointerException
- if the argument is nullCopyright © 2017. All rights reserved.