|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcoderz.phoenix.report.ReportLevel
public final class ReportLevel
Enumerated type of a report level. Instances of this class are immutable. The following report levels are defined:
| Field Summary | |
|---|---|
static ReportLevel |
MISC
The ReportLevel misc. |
static ReportLevel |
PROD
The ReportLevel prod. |
static ReportLevel |
TEST
The ReportLevel test. |
static String |
TYPE_NAME
The name of this type. |
static Map |
VALUE_MAP
Immutable map using the name string as key holding the ReportLevels as values. |
static List |
VALUES
Immutable list of the ReportLevels. |
| Method Summary | |
|---|---|
static ReportLevel |
fromInt(int i)
Creates a ReportLevel object from its int representation. |
static ReportLevel |
fromString(String str)
Creates a ReportLevel object from its String representation. |
int |
toInt()
Returns the int representation of this report level. |
String |
toString()
Returns the String representation of this report level. |
| 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 ReportLevel PROD
public static final ReportLevel MISC
public static final ReportLevel TEST
public static final List VALUES
public static final Map VALUE_MAP
| Method Detail |
|---|
public static ReportLevel fromInt(int i)
throws ArgumentMalformedException
i - the integer representation of the report level.
ArgumentMalformedException - If the assigned int value isn't
listed in the internal report level table.
public static ReportLevel fromString(String str)
throws ArgumentMalformedException
str - the string representation of the
report level.
ArgumentMalformedException - If the given str value isn't
listed in the internal report level 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 | |||||||||