JTools

org.jtools.info
Enum Severity

java.lang.Object
  extended by java.lang.Enum<Severity>
      extended by org.jtools.info.Severity
All Implemented Interfaces:
Serializable, Comparable<Severity>

public enum Severity
extends Enum<Severity>

Defines some info severities.

Author:
Rainer Noack

Enum Constant Summary
DEBUG
          Indicates some (normal) info which should only appear in debug mode.
ERROR
          Indicates an erroneous situation.
FATAL
          Indicates a fatal situation on component level.
INFO
          Indicates some (normal) info.
SYSTEM
          Indicates a fatal situation on system level.
VERBOSE
          Indicates some (normal) info which should only appear in verbose mode.
WARNING
          Indicates a warning situation.
 
Method Summary
abstract
<T_Return,T_Data>
T_Return
accept(SeverityVisitor<T_Return,T_Data> visitor, T_Data... data)
           
static Severity valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Severity[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SYSTEM

public static final Severity SYSTEM
Indicates a fatal situation on system level.


FATAL

public static final Severity FATAL
Indicates a fatal situation on component level.


ERROR

public static final Severity ERROR
Indicates an erroneous situation.


WARNING

public static final Severity WARNING
Indicates a warning situation.


INFO

public static final Severity INFO
Indicates some (normal) info.


VERBOSE

public static final Severity VERBOSE
Indicates some (normal) info which should only appear in verbose mode.


DEBUG

public static final Severity DEBUG
Indicates some (normal) info which should only appear in debug mode.

Method Detail

values

public static final Severity[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(Severity c : Severity.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static Severity valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name

accept

public abstract <T_Return,T_Data> T_Return accept(SeverityVisitor<T_Return,T_Data> visitor,
                                                  T_Data... data)

JTools

© 2000-2006, JTools.org.