org.w3c.tidy

Class TidyMessage.Level

Enclosing Class:
TidyMessage
Implemented Interfaces:
Comparable

public static final class TidyMessage.Level
extends java.lang.Object
implements Comparable

Message severity enumeration.
Version:
$Revision: 630 $ ($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(Object object)
boolean
equals(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()
String
toString()

Field Details

ERROR

public static final TidyMessage.Level ERROR
level = error (3).

INFO

public static final TidyMessage.Level INFO
level = info (1).

SUMMARY

public static final TidyMessage.Level SUMMARY
level = summary (0).

WARNING

public static final TidyMessage.Level WARNING
level = warning (2).

Method Details

compareTo

public int compareTo(Object object)
See Also:
java.lang.Comparable.compareTo(Object)

equals

public boolean equals(Object object)
See Also:
java.lang.Object.equals(Object)

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

getCode

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

hashCode

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

toString

public String toString()
See Also:
java.lang.Object.toString()