org.jtheque.core.managers.event
Enum EventLevel

java.lang.Object
  extended by java.lang.Enum<EventLevel>
      extended by org.jtheque.core.managers.event.EventLevel
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<EventLevel>

public enum EventLevel
extends java.lang.Enum<EventLevel>

An event level.

Author:
Baptiste Wicht

Enum Constant Summary
ERROR
           
INFO
           
WARN
           
 
Method Summary
static EventLevel get(int value)
          Return the EventLevel corresponding to the value.
 java.lang.String getKey()
          Return the internationalization key.
 int intValue()
          Return the int value of the event level.
static EventLevel valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static EventLevel[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INFO

public static final EventLevel INFO

WARN

public static final EventLevel WARN

ERROR

public static final EventLevel ERROR
Method Detail

values

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

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

valueOf

public static EventLevel valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getKey

public java.lang.String getKey()
Return the internationalization key.

Returns:
The internationalization of the level.

intValue

public int intValue()
Return the int value of the event level.

Returns:
The int value of the event level.

get

public static EventLevel get(int value)
Return the EventLevel corresponding to the value.

Parameters:
value - The int value.
Returns:
The EventLevel corresponding to the value.


Copyright © 2009 JTheque. All Rights Reserved.