Enum Constant and Description |
---|
HTML_401_FRAMESET
Deprecated.
HTML 4.01 Frameset
This DTD is equal to HTML 4.01 Transitional, but allows the use of
frameset content.
|
HTML_401_STRICT
Deprecated.
HTML 4.01 Strict
This DTD contains all HTML elements and attributes, but does not include
presentational or deprecated elements (like font).
|
HTML_401_TRANS
Deprecated.
HTML 4.01 Transitional
This DTD contains all HTML elements and attributes, including
presentational and deprecated elements (like font).
|
HTML_5
Deprecated.
HTML 5 doctype.
|
XHTML_10_FRAMESET
Deprecated.
XHTML 1.0 Frameset
This DTD is equal to XHTML 1.0 Transitional, but allows the use of
frameset content.
|
XHTML_10_STRICT
Deprecated.
XHTML 1.0 Strict
This DTD contains all HTML elements and attributes, but does not include
presentational or deprecated elements (like font).
|
XHTML_10_TRANS
Deprecated.
XHTML 1.0 Transitional
This DTD contains all HTML elements and attributes, including
presentational and deprecated elements (like font).
|
XHTML_11
Deprecated.
XHTML 1.1
This DTD is equal to XHTML 1.0 Strict, but allows you to add modules
(for example to provide ruby support for East-Asian languages).
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REQUEST_ATTRIBUTE_NAME
Deprecated.
name of the Doctype request attribute
|
Modifier and Type | Method and Description |
---|---|
static Doctype |
fromRequest(javax.servlet.ServletRequest req)
Deprecated.
Returns the current doctype of this request.
|
java.lang.String |
getDeclaration()
Deprecated.
Returns the declaration string of this doctype.
|
boolean |
isXHTML()
Deprecated.
Checks if this doctype is XHTML.
|
static boolean |
isXHTML(javax.servlet.ServletRequest req)
Deprecated.
Convenience method that retieves the doctype from the request attribute
and checks if the doctype is XHTML.
|
void |
toRequest(javax.servlet.ServletRequest req)
Deprecated.
Sets the current doctype of this request.
|
static Doctype |
valueOf(java.lang.String name)
Deprecated.
Returns the enum constant of this type with the specified name.
|
static Doctype[] |
values()
Deprecated.
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Doctype HTML_5
public static final Doctype HTML_401_STRICT
public static final Doctype HTML_401_TRANS
public static final Doctype HTML_401_FRAMESET
public static final Doctype XHTML_10_STRICT
public static final Doctype XHTML_10_TRANS
public static final Doctype XHTML_10_FRAMESET
public static final Doctype XHTML_11
public static final java.lang.String REQUEST_ATTRIBUTE_NAME
public static Doctype[] values()
for (Doctype c : Doctype.values()) System.out.println(c);
public static Doctype 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 namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getDeclaration()
public boolean isXHTML()
true
if this doctype is XHTML.public static boolean isXHTML(javax.servlet.ServletRequest req)
req
- servlet requesttrue
if the doctype is XHTML.public static Doctype fromRequest(javax.servlet.ServletRequest req)
req
- servlet requestnull
if not set.public void toRequest(javax.servlet.ServletRequest req)
req
- servlet requestCopyright © 2010 - 2023 Adobe. All Rights Reserved