OOP2002Example.types
Class NameType

java.lang.Object
  |
  +--OOP2002Example.types.NameType
All Implemented Interfaces:
java.io.Serializable

public class NameType
extends java.lang.Object
implements java.io.Serializable

Version:
$Revision$ $Date$
See Also:
Serialized Form

Field Summary
private static java.util.Hashtable _memberTable
           
private  java.lang.String stringValue
           
private  int type
           
static OOP2002Example.types.NameType VALUE_0
          The instance of the Dunkelblau type
static int VALUE_0_TYPE
          The Dunkelblau type
static OOP2002Example.types.NameType VALUE_1
          The instance of the Firnweiß type
static int VALUE_1_TYPE
          The Firnweiß type
static OOP2002Example.types.NameType VALUE_10
          The instance of the Obsidianschwarz type
static int VALUE_10_TYPE
          The Obsidianschwarz type
static OOP2002Example.types.NameType VALUE_11
          The instance of the Titanrot type
static int VALUE_11_TYPE
          The Titanrot type
static OOP2002Example.types.NameType VALUE_12
          The instance of the Travertinbeige type
static int VALUE_12_TYPE
          The Travertinbeige type
static OOP2002Example.types.NameType VALUE_13
          The instance of the Amethystviolett type
static int VALUE_13_TYPE
          The Amethystviolett type
static OOP2002Example.types.NameType VALUE_2
          The instance of the Magmarot type
static int VALUE_2_TYPE
          The Magmarot type
static OOP2002Example.types.NameType VALUE_3
          The instance of the Schwarz type
static int VALUE_3_TYPE
          The Schwarz type
static OOP2002Example.types.NameType VALUE_4
          The instance of the Smaragdschwarz type
static int VALUE_4_TYPE
          The Smaragdschwarz type
static OOP2002Example.types.NameType VALUE_5
          The instance of the Japisblau type
static int VALUE_5_TYPE
          The Japisblau type
static OOP2002Example.types.NameType VALUE_6
          The instance of the Tansanitblau type
static int VALUE_6_TYPE
          The Tansanitblau type
static OOP2002Example.types.NameType VALUE_7
          The instance of the Alexandritgrün type
static int VALUE_7_TYPE
          The Alexandritgrün type
static OOP2002Example.types.NameType VALUE_8
          The instance of the Brilliantsilber type
static int VALUE_8_TYPE
          The Brilliantsilber type
static OOP2002Example.types.NameType VALUE_9
          The instance of the Tektitgrau type
static int VALUE_9_TYPE
          The Tektitgrau type
 
Constructor Summary
private NameType(int type, java.lang.String value)
           
 
Method Summary
static java.util.Enumeration enumerate()
          Returns an enumeration of all possible instances of NameType
 int getType()
          Returns the type of this NameType
private static java.util.Hashtable init()
           
 java.lang.String toString()
          Returns the String representation of this NameType
static OOP2002Example.types.NameType valueOf(java.lang.String string)
          Returns a new NameType based on the given String value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VALUE_0_TYPE

public static final int VALUE_0_TYPE
The Dunkelblau type

See Also:
Constant Field Values

VALUE_0

public static final OOP2002Example.types.NameType VALUE_0
The instance of the Dunkelblau type


VALUE_1_TYPE

public static final int VALUE_1_TYPE
The Firnweiß type

See Also:
Constant Field Values

VALUE_1

public static final OOP2002Example.types.NameType VALUE_1
The instance of the Firnweiß type


VALUE_2_TYPE

public static final int VALUE_2_TYPE
The Magmarot type

See Also:
Constant Field Values

VALUE_2

public static final OOP2002Example.types.NameType VALUE_2
The instance of the Magmarot type


VALUE_3_TYPE

public static final int VALUE_3_TYPE
The Schwarz type

See Also:
Constant Field Values

VALUE_3

public static final OOP2002Example.types.NameType VALUE_3
The instance of the Schwarz type


VALUE_4_TYPE

public static final int VALUE_4_TYPE
The Smaragdschwarz type

See Also:
Constant Field Values

VALUE_4

public static final OOP2002Example.types.NameType VALUE_4
The instance of the Smaragdschwarz type


VALUE_5_TYPE

public static final int VALUE_5_TYPE
The Japisblau type

See Also:
Constant Field Values

VALUE_5

public static final OOP2002Example.types.NameType VALUE_5
The instance of the Japisblau type


VALUE_6_TYPE

public static final int VALUE_6_TYPE
The Tansanitblau type

See Also:
Constant Field Values

VALUE_6

public static final OOP2002Example.types.NameType VALUE_6
The instance of the Tansanitblau type


VALUE_7_TYPE

public static final int VALUE_7_TYPE
The Alexandritgrün type

See Also:
Constant Field Values

VALUE_7

public static final OOP2002Example.types.NameType VALUE_7
The instance of the Alexandritgrün type


VALUE_8_TYPE

public static final int VALUE_8_TYPE
The Brilliantsilber type

See Also:
Constant Field Values

VALUE_8

public static final OOP2002Example.types.NameType VALUE_8
The instance of the Brilliantsilber type


VALUE_9_TYPE

public static final int VALUE_9_TYPE
The Tektitgrau type

See Also:
Constant Field Values

VALUE_9

public static final OOP2002Example.types.NameType VALUE_9
The instance of the Tektitgrau type


VALUE_10_TYPE

public static final int VALUE_10_TYPE
The Obsidianschwarz type

See Also:
Constant Field Values

VALUE_10

public static final OOP2002Example.types.NameType VALUE_10
The instance of the Obsidianschwarz type


VALUE_11_TYPE

public static final int VALUE_11_TYPE
The Titanrot type

See Also:
Constant Field Values

VALUE_11

public static final OOP2002Example.types.NameType VALUE_11
The instance of the Titanrot type


VALUE_12_TYPE

public static final int VALUE_12_TYPE
The Travertinbeige type

See Also:
Constant Field Values

VALUE_12

public static final OOP2002Example.types.NameType VALUE_12
The instance of the Travertinbeige type


VALUE_13_TYPE

public static final int VALUE_13_TYPE
The Amethystviolett type

See Also:
Constant Field Values

VALUE_13

public static final OOP2002Example.types.NameType VALUE_13
The instance of the Amethystviolett type


_memberTable

private static java.util.Hashtable _memberTable

type

private int type

stringValue

private java.lang.String stringValue
Constructor Detail

NameType

private NameType(int type,
                 java.lang.String value)
Method Detail

enumerate

public static java.util.Enumeration enumerate()
Returns an enumeration of all possible instances of NameType


getType

public int getType()
Returns the type of this NameType


init

private static java.util.Hashtable init()

toString

public java.lang.String toString()
Returns the String representation of this NameType

Overrides:
toString in class java.lang.Object

valueOf

public static OOP2002Example.types.NameType valueOf(java.lang.String string)
Returns a new NameType based on the given String value.

Parameters:
string -