org.w3c.tidy
Class TidyMessage.Level

java.lang.Object
  extended by 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.Comparable

Message severity enumeration.

Version:
$Revision: 779 $ ($Author: fgiust $)
Author:
fgiust

Field Summary
static TidyMessage.Level ERROR
          level = error (3).
static TidyMessage.Level INFO
          level = info (1).
static TidyMessage.Level SUMMARY
          level = summary (0).
static TidyMessage.Level WARNING
          level = warning (2).
 
Method Summary
 int compareTo(java.lang.Object object)
           
 boolean equals(java.lang.Object object)
           
static TidyMessage.Level fromCode(int code)
          Returns the Level instance corresponding to the given int value.
 short getCode()
          Returns the int value for this level.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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).

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()


Copyright © 2000-2006 sourceforge. All Rights Reserved.