org.jcoderz.phoenix.report
Class ReportLevel

java.lang.Object
  extended by org.jcoderz.phoenix.report.ReportLevel
All Implemented Interfaces:
Serializable, EnumType, StrongType

public final class ReportLevel
extends Object
implements Serializable, EnumType

Enumerated type of a report level. Instances of this class are immutable. The following report levels 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 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

TYPE_NAME

public static final String TYPE_NAME
The name of this type.

See Also:
Constant Field Values

PROD

public static final ReportLevel PROD
The ReportLevel prod.


MISC

public static final ReportLevel MISC
The ReportLevel misc.


TEST

public static final ReportLevel TEST
The ReportLevel test.


VALUES

public static final List VALUES
Immutable list of the ReportLevels.


VALUE_MAP

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

Method Detail

fromInt

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

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

fromString

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

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

toInt

public int toInt()
Returns the int representation of this report level.

Specified by:
toInt in interface EnumType
Returns:
the int representation of this report level.

toString

public String toString()
Returns the String representation of this report level.

Overrides:
toString in class Object
Returns:
the String representation of this report level.


Copyright 2007 The jCoderZ Project.