org.jfree.report.modules.parser.base
Class SeverityLevel

java.lang.Object
  extended byorg.jfree.report.modules.parser.base.SeverityLevel
All Implemented Interfaces:
java.io.Serializable

public final class SeverityLevel
extends java.lang.Object
implements java.io.Serializable

An enumeration class to represent the severity level of an operation result.

Author:
Thomas Morgner
See Also:
Serialized Form

Field Summary
static SeverityLevel ERROR
          Represents error messages.
static SeverityLevel FATAL_ERROR
          Represents fatal parse error messages.
static SeverityLevel INFO
          Represents informational messages.
static SeverityLevel WARNING
          Represents warning messages.
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares the severity level for equality with the given object.
 int hashCode()
          Computes an hashcode for this level object.
protected  java.lang.Object readResolve()
          Replaces the automatically generated instance with one of the enumeration instances.
 java.lang.String toString()
          Returns the string representation of this severity level object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

WARNING

public static final SeverityLevel WARNING
Represents warning messages.


ERROR

public static final SeverityLevel ERROR
Represents error messages.


FATAL_ERROR

public static final SeverityLevel FATAL_ERROR
Represents fatal parse error messages.


INFO

public static final SeverityLevel INFO
Represents informational messages.

Method Detail

toString

public java.lang.String toString()
Returns the string representation of this severity level object.

Returns:
a string representing this object.
See Also:
Object.toString()

equals

public boolean equals(java.lang.Object o)
Compares the severity level for equality with the given object.

Parameters:
o - the other object that should be compared.
Returns:
true, if both objects are equal, false otherwise.
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Computes an hashcode for this level object.

Returns:
the hashcode.
See Also:
Object.hashCode()

readResolve

protected java.lang.Object readResolve()
                                throws java.io.ObjectStreamException
Replaces the automatically generated instance with one of the enumeration instances.

Returns:
the resolved element
Throws:
java.io.ObjectStreamException - if the element could not be resolved.