org.jcoderz.commons.types.samples
Class TestEnumWiredText

java.lang.Object
  extended by org.jcoderz.commons.types.samples.TestEnumWiredText
All Implemented Interfaces:
Serializable, EnumType, StrongType

public final class TestEnumWiredText
extends Object
implements Serializable, EnumType

Enumerated type of a test enum wired text. Instances of this class are immutable. The following test enum wired texts 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 TestEnumWiredText TEST
          The TestEnumWiredText Strange!.
static String TYPE_NAME
          The name of this type.
static TestEnumWiredText V_5_7_2_6___12
          The TestEnumWiredText 5.7.2.6 / 12.
static Map VALUE_MAP
          Immutable map using the name string as key holding the TestEnumWiredTexts as values.
static List VALUES
          Immutable list of the TestEnumWiredTexts.
static TestEnumWiredText ZUES__1_
          The TestEnumWiredText Zues (1).
 
Method Summary
static TestEnumWiredText fromInt(int i)
          Creates a TestEnumWiredText object from its int representation.
static TestEnumWiredText fromString(String str)
          Creates a TestEnumWiredText object from its String representation.
 int toInt()
          Returns the int representation of this test enum wired text.
 String toString()
          Returns the String representation of this test enum wired text.
 
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

ZUES__1_

public static final TestEnumWiredText ZUES__1_
The TestEnumWiredText Zues (1).


TEST

public static final TestEnumWiredText TEST
The TestEnumWiredText Strange!.


V_5_7_2_6___12

public static final TestEnumWiredText V_5_7_2_6___12
The TestEnumWiredText 5.7.2.6 / 12.


VALUES

public static final List VALUES
Immutable list of the TestEnumWiredTexts.


VALUE_MAP

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

Method Detail

fromInt

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

Parameters:
i - the integer representation of the test enum wired text.
Returns:
the TestEnumWiredText object represented by this int.
Throws:
ArgumentMalformedException - If the assigned int value isn't listed in the internal test enum wired text table.

fromString

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

Parameters:
str - the string representation of the test enum wired text.
Returns:
the TestEnumWiredText object represented by this str.
Throws:
ArgumentMalformedException - If the given str value isn't listed in the internal test enum wired text table.

toInt

public int toInt()
Returns the int representation of this test enum wired text.

Specified by:
toInt in interface EnumType
Returns:
the int representation of this test enum wired text.

toString

public String toString()
Returns the String representation of this test enum wired text.

Overrides:
toString in class Object
Returns:
the String representation of this test enum wired text.


Copyright 2007 The jCoderZ Project.