Package org.w3c.tidy
Enum HtmlVersion
- java.lang.Object
-
- java.lang.Enum<HtmlVersion>
-
- org.w3c.tidy.HtmlVersion
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<HtmlVersion>
public enum HtmlVersion extends java.lang.Enum<HtmlVersion>
Constants for supported HTML schemas.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BASIC
xhtml basic.FRAMESET
html 4.0 frameset.HTML20
html 2.0.HTML32
html 3.2.HTML40_LOOSE
html 4.0 transitional.HTML40_STRICT
html 4.0 strict.HTML5
HTML 5.MALFORMED
malformed.MICROSOFT
microsoft.NETSCAPE
netscape.SUN
sun.UNKNOWN
unknown.XHTML11
xhtml 1.1.XML
xml.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HtmlVersion
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static HtmlVersion[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final HtmlVersion UNKNOWN
unknown.
-
HTML20
public static final HtmlVersion HTML20
html 2.0.
-
HTML32
public static final HtmlVersion HTML32
html 3.2.
-
HTML40_STRICT
public static final HtmlVersion HTML40_STRICT
html 4.0 strict.
-
HTML40_LOOSE
public static final HtmlVersion HTML40_LOOSE
html 4.0 transitional.
-
FRAMESET
public static final HtmlVersion FRAMESET
html 4.0 frameset.
-
XML
public static final HtmlVersion XML
xml.
-
NETSCAPE
public static final HtmlVersion NETSCAPE
netscape.
-
MICROSOFT
public static final HtmlVersion MICROSOFT
microsoft.
-
SUN
public static final HtmlVersion SUN
sun.
-
MALFORMED
public static final HtmlVersion MALFORMED
malformed.
-
XHTML11
public static final HtmlVersion XHTML11
xhtml 1.1.
-
BASIC
public static final HtmlVersion BASIC
xhtml basic.
-
HTML5
public static final HtmlVersion HTML5
HTML 5.
-
-
Method Detail
-
values
public static HtmlVersion[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (HtmlVersion c : HtmlVersion.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HtmlVersion valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-