org.jcoderz.phoenix.report
Class OutputFormat

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

public final class OutputFormat
extends Object
implements Serializable, EnumType

Enumerated type of a output format. Instances of this class are immutable. The following output formats 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 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

TYPE_NAME

public static final String TYPE_NAME
The name of this type.

See Also:
Constant Field Values

XML

public static final OutputFormat XML
The OutputFormat xml.


HTML

public static final OutputFormat HTML
The OutputFormat html.


VALUES

public static final List VALUES
Immutable list of the OutputFormats.


VALUE_MAP

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

Method Detail

fromInt

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

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

fromString

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

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

toInt

public int toInt()
Returns the int representation of this output format.

Specified by:
toInt in interface EnumType
Returns:
the int representation of this output format.

toString

public String toString()
Returns the String representation of this output format.

Overrides:
toString in class Object
Returns:
the String representation of this output format.


Copyright 2007 The jCoderZ Project.