WIDAR Classes

ca.nrc.widar.mccc.crm
Enum CrmLog.ErrorLevel

java.lang.Object
  extended by java.lang.Enum<CrmLog.ErrorLevel>
      extended by ca.nrc.widar.mccc.crm.CrmLog.ErrorLevel
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CrmLog.ErrorLevel>
Enclosing class:
CrmLog

public static enum CrmLog.ErrorLevel
extends java.lang.Enum<CrmLog.ErrorLevel>

The ErrorLevel enumeration Currently not entirely sure if all of these levels are used, but they mirror the levels used elsewhere in the MCCC software and Alerts (to some extent) so here they remain.

 

Enum Constant Summary
LOG_ALERT
           
LOG_CRIT
           
LOG_DEBUG
           
LOG_EMERG
           
LOG_ERR
           
LOG_INFO
           
LOG_NOTICE
           
LOG_WARNING
           
 
Method Summary
static CrmLog.ErrorLevel get(int id)
           
 int getID()
           
 java.lang.String getLevel()
           
 java.lang.String label()
           
 java.lang.String ucLabel()
           
static CrmLog.ErrorLevel valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CrmLog.ErrorLevel[] 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

LOG_EMERG

public static final CrmLog.ErrorLevel LOG_EMERG

LOG_ALERT

public static final CrmLog.ErrorLevel LOG_ALERT

LOG_CRIT

public static final CrmLog.ErrorLevel LOG_CRIT

LOG_ERR

public static final CrmLog.ErrorLevel LOG_ERR

LOG_WARNING

public static final CrmLog.ErrorLevel LOG_WARNING

LOG_NOTICE

public static final CrmLog.ErrorLevel LOG_NOTICE

LOG_INFO

public static final CrmLog.ErrorLevel LOG_INFO

LOG_DEBUG

public static final CrmLog.ErrorLevel LOG_DEBUG
Method Detail

values

public static CrmLog.ErrorLevel[] 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 (CrmLog.ErrorLevel c : CrmLog.ErrorLevel.values())
    System.out.println(c);

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

valueOf

public static CrmLog.ErrorLevel 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.)

Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null
Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name

getLevel

public java.lang.String getLevel()

getID

public int getID()

label

public java.lang.String label()

ucLabel

public java.lang.String ucLabel()

get

public static CrmLog.ErrorLevel get(int id)

NRAO/DRAO

National Radio Astronomy Observatory