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