|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcoderz.commons.BusinessImpact
public final class BusinessImpact
Enumerated type of a business impact. Instances of this class are immutable. The following business impacts are defined:
| 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 |
|---|
public static final String TYPE_NAME
public static final BusinessImpact CRITICAL
public static final BusinessImpact MAJOR
public static final BusinessImpact MIDDLE
public static final BusinessImpact MINOR
public static final BusinessImpact NONE
public static final BusinessImpact UNDEFINED
public static final List VALUES
public static final Map VALUE_MAP
| Method Detail |
|---|
public static BusinessImpact fromInt(int i)
throws ArgumentMalformedException
i - the integer representation of the business impact.
ArgumentMalformedException - If the assigned int value isn't
listed in the internal business impact table.
public static BusinessImpact fromString(String str)
throws ArgumentMalformedException
str - the string representation of the
business impact.
ArgumentMalformedException - If the given str value isn't
listed in the internal business impact table.public int toInt()
toInt in interface EnumTypepublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||