Package org.w3c.tidy
Class TidyMessage.Level
- java.lang.Object
-
- org.w3c.tidy.TidyMessage.Level
-
- All Implemented Interfaces:
java.lang.Comparable
- Enclosing class:
- TidyMessage
public static final class TidyMessage.Level extends java.lang.Object implements java.lang.ComparableMessage severity enumeration.- Version:
- $Revision: 630 $ ($Author: fgiust $)
-
-
Field Summary
Fields Modifier and Type Field Description private shortcodeshort value for this level.static TidyMessage.LevelERRORlevel = error (3).static TidyMessage.LevelINFOlevel = info (1).static TidyMessage.LevelSUMMARYlevel = summary (0).static TidyMessage.LevelWARNINGlevel = warning (2).
-
Constructor Summary
Constructors Modifier Constructor Description privateLevel(int code)Instantiates a new message with the given code.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(java.lang.Object object)booleanequals(java.lang.Object object)static TidyMessage.LevelfromCode(int code)Returns the Level instance corresponding to the given int value.shortgetCode()Returns the int value for this level.inthashCode()java.lang.StringtoString()
-
-
-
Field Detail
-
SUMMARY
public static final TidyMessage.Level SUMMARY
level = summary (0).
-
INFO
public static final TidyMessage.Level INFO
level = info (1).
-
WARNING
public static final TidyMessage.Level WARNING
level = warning (2).
-
ERROR
public static final TidyMessage.Level ERROR
level = error (3).
-
code
private short code
short value for this level.
-
-
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:
compareToin interfacejava.lang.Comparable- See Also:
Comparable.compareTo(Object)
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classjava.lang.Object- See Also:
Object.equals(Object)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object- See Also:
Object.toString()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object- See Also:
Object.hashCode()
-
-