org.jcoderz.commons
Class BusinessImpact

java.lang.Object
  extended by org.jcoderz.commons.BusinessImpact
All Implemented Interfaces:
Serializable, EnumType, StrongType

public final class BusinessImpact
extends Object
implements Serializable, EnumType

Enumerated type of a business impact. Instances of this class are immutable. The following business impacts are defined:

The values of this enum have a internal sequential integer representation starting with '0'.

Author:
generated
See Also:
Serialized Form

Field Summary
static BusinessImpact CRITICAL
          The BusinessImpact Critical.
static BusinessImpact MAJOR
          The BusinessImpact Major.
static BusinessImpact MIDDLE
          The BusinessImpact Middle.
static BusinessImpact MINOR
          The BusinessImpact Minor.
static BusinessImpact NONE
          The BusinessImpact None.
static String TYPE_NAME
          The name of this type.
static BusinessImpact UNDEFINED
          The BusinessImpact Undefined.
static Map VALUE_MAP
          Immutable map using the name string as key holding the BusinessImpacts as values.
static List VALUES
          Immutable list of the BusinessImpacts.
 
Method Summary
static BusinessImpact fromInt(int i)
          Creates a BusinessImpact object from its int representation.
static BusinessImpact fromString(String str)
          Creates a BusinessImpact object from its String representation.
 int toInt()
          Returns the int representation of this business impact.
 String toString()
          Returns the String representation of this business impact.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE_NAME

public static final String TYPE_NAME
The name of this type.

See Also:
Constant Field Values

CRITICAL

public static final BusinessImpact CRITICAL
The BusinessImpact Critical.


MAJOR

public static final BusinessImpact MAJOR
The BusinessImpact Major.


MIDDLE

public static final BusinessImpact MIDDLE
The BusinessImpact Middle.


MINOR

public static final BusinessImpact MINOR
The BusinessImpact Minor.


NONE

public static final BusinessImpact NONE
The BusinessImpact None.


UNDEFINED

public static final BusinessImpact UNDEFINED
The BusinessImpact Undefined.


VALUES

public static final List VALUES
Immutable list of the BusinessImpacts.


VALUE_MAP

public static final Map VALUE_MAP
Immutable map using the name string as key holding the BusinessImpacts as values.

Method Detail

fromInt

public static BusinessImpact fromInt(int i)
                              throws ArgumentMalformedException
Creates a BusinessImpact object from its int representation.

Parameters:
i - the integer representation of the business impact.
Returns:
the BusinessImpact object represented by this int.
Throws:
ArgumentMalformedException - If the assigned int value isn't listed in the internal business impact table.

fromString

public static BusinessImpact fromString(String str)
                                 throws ArgumentMalformedException
Creates a BusinessImpact object from its String representation.

Parameters:
str - the string representation of the business impact.
Returns:
the BusinessImpact object represented by this str.
Throws:
ArgumentMalformedException - If the given str value isn't listed in the internal business impact table.

toInt

public int toInt()
Returns the int representation of this business impact.

Specified by:
toInt in interface EnumType
Returns:
the int representation of this business impact.

toString

public String toString()
Returns the String representation of this business impact.

Overrides:
toString in class Object
Returns:
the String representation of this business impact.


Copyright 2007 The jCoderZ Project.