Package org.w3c.tidy

Enum HtmlVersion

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<HtmlVersion>

    public enum HtmlVersion
    extends java.lang.Enum<HtmlVersion>
    Constants for supported HTML schemas.
    • 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.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • 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.
      • NETSCAPE

        public static final HtmlVersion NETSCAPE
        netscape.
      • MICROSOFT

        public static final HtmlVersion MICROSOFT
        microsoft.
      • MALFORMED

        public static final HtmlVersion MALFORMED
        malformed.
      • XHTML11

        public static final HtmlVersion XHTML11
        xhtml 1.1.
      • BASIC

        public static final HtmlVersion BASIC
        xhtml basic.
    • 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 name
        java.lang.NullPointerException - if the argument is null