Package org.w3c.tidy

Enum HtmlVersion

java.lang.Object
java.lang.Enum<HtmlVersion>
org.w3c.tidy.HtmlVersion
All Implemented Interfaces:
Serializable, Comparable<HtmlVersion>, java.lang.constant.Constable

public enum HtmlVersion extends Enum<HtmlVersion>
Constants for supported HTML schemas.
  • Enum Constant Details

    • 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 Details

    • values

      public static HtmlVersion[] 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

      public static HtmlVersion valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null