|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcoderz.commons.Category
public final class Category
Enumerated type of a category. Instances of this class are immutable. The following categorys are defined:
| Field Summary | |
|---|---|
static Category |
AUDIT
The Category Audit. |
static Category |
BUSINESS
The Category Business. |
static Category |
FLOW
The Category Flow. |
static Category |
SECURITY
The Category Security. |
static Category |
TECHNICAL
The Category Technical. |
static String |
TYPE_NAME
The name of this type. |
static Category |
UNDEFINED
The Category Undefined. |
static Map |
VALUE_MAP
Immutable map using the name string as key holding the Categorys as values. |
static List |
VALUES
Immutable list of the Categorys. |
| Method Summary | |
|---|---|
static Category |
fromInt(int i)
Creates a Category object from its int representation. |
static Category |
fromString(String str)
Creates a Category object from its String representation. |
int |
toInt()
Returns the int representation of this category. |
String |
toString()
Returns the String representation of this category. |
| 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 Category AUDIT
public static final Category BUSINESS
public static final Category FLOW
public static final Category SECURITY
public static final Category TECHNICAL
public static final Category UNDEFINED
public static final List VALUES
public static final Map VALUE_MAP
| Method Detail |
|---|
public static Category fromInt(int i)
throws ArgumentMalformedException
i - the integer representation of the category.
ArgumentMalformedException - If the assigned int value isn't
listed in the internal category table.
public static Category fromString(String str)
throws ArgumentMalformedException
str - the string representation of the
category.
ArgumentMalformedException - If the given str value isn't
listed in the internal category 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 | |||||||||