Package org.w3c.tidy

Class TidyMessage.Level

  • All Implemented Interfaces:
    java.lang.Comparable
    Enclosing class:
    TidyMessage

    public static final class TidyMessage.Level
    extends java.lang.Object
    implements java.lang.Comparable
    Message severity enumeration.
    Version:
    $Revision$ ($Author$)
    Author:
    fgiust
    • Method Detail

      • getCode

        public short getCode()
        Returns the int value for this level.
        Returns:
        int value for this level
      • fromCode

        public static TidyMessage.Level fromCode​(int code)
        Returns the Level instance corresponding to the given int value.
        Parameters:
        code - int value for the level
        Returns:
        Level instance
      • compareTo

        public int compareTo​(java.lang.Object object)
        Specified by:
        compareTo in interface java.lang.Comparable
        See Also:
        Comparable.compareTo(Object)
      • equals

        public boolean equals​(java.lang.Object object)
        Overrides:
        equals in class java.lang.Object
        See Also:
        Object.equals(Object)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
        See Also:
        Object.hashCode()