Enum Configuration.Doctype
- All Implemented Interfaces:
Serializable
,Comparable<Configuration.Doctype>
,java.lang.constant.Constable
- Enclosing class:
Configuration
An enum containing document type constants.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates that the document type will be detected automatically.Indicates that the document type will be set to HTML5.Indicates that the document type will be set to XHTML.Indicates that the document type will be set to generic XML. -
Method Summary
Modifier and TypeMethodDescriptionstatic Configuration.Doctype
Returns the enum constant of this type with the specified name.static Configuration.Doctype[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
AUTODETECT
Indicates that the document type will be detected automatically. When the document has a file extension, it is used to determine whether the document is
HTML5
orXHTML
. If there is no file extension or it is unknown, then the document content itself is searched for an XML declaration, a doctype preamble and the root element.- See Also:
-
HTML5
Indicates that the document type will be set to HTML5. The HTML default style sheet is used and the document is loaded regarding style elements, style attributes and link stylesheets.
-
XHTML
Indicates that the document type will be set to XHTML. The HTML default style sheet is used and the document is loaded regarding style elements, style attributes and link stylesheets.
-
XML
Indicates that the document type will be set to generic XML. No default style sheet is used and the document is loaded as is without regards to style elements or attributes.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException
- if the argument is null
-