com.buildforge.services.common.dbo
Enum MessageDBO.Severity

java.lang.Object
  extended by java.lang.Enum<MessageDBO.Severity>
      extended by com.buildforge.services.common.dbo.MessageDBO.Severity
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MessageDBO.Severity>
Enclosing class:
MessageDBO

public static enum MessageDBO.Severity
extends java.lang.Enum<MessageDBO.Severity>

Identifies the severity of a message. The values here should be fairly self-explanatory.


Enum Constant Summary
AUDIT
          Indicates that this message reports activity by a user that may be of interest for auditing purposes.
ERROR
          Indicates that this message describes a significant error condition within the Build Forge system.
INFO
          Indicates that this message is information about the normal operation of the Build Forge system.
WARNING
          Indicates that this message describes a suspicious event that may or may not be relevant in determining the cause of a failure.
 
Field Summary
static java.lang.Class<MessageDBO.Severity> CLASS
           
 char code
           
 
Method Summary
static MessageDBO.Severity fromDB(char c)
           
static MessageDBO.Severity fromObject(java.lang.Object o)
           
static MessageDBO.Severity valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MessageDBO.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
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ERROR

public static final MessageDBO.Severity ERROR
Indicates that this message describes a significant error condition within the Build Forge system.


WARNING

public static final MessageDBO.Severity WARNING
Indicates that this message describes a suspicious event that may or may not be relevant in determining the cause of a failure.


INFO

public static final MessageDBO.Severity INFO
Indicates that this message is information about the normal operation of the Build Forge system.


AUDIT

public static final MessageDBO.Severity AUDIT
Indicates that this message reports activity by a user that may be of interest for auditing purposes. This includes most permanent changes to the system (such as deleting a step from a project) as well as interactive events (such as logging in or running a build).

Field Detail

CLASS

public static final java.lang.Class<MessageDBO.Severity> CLASS

code

public final char code
Method Detail

values

public static final MessageDBO.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(MessageDBO.Severity c : MessageDBO.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 MessageDBO.Severity 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

fromDB

public static MessageDBO.Severity fromDB(char c)

fromObject

public static MessageDBO.Severity fromObject(java.lang.Object o)
                                      throws APIException
Throws:
APIException