OOP2002Example.types
Class LineType

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

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

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

Field Summary
private static java.util.Hashtable _memberTable
           
static OOP2002Example.types.LineType AVANTGARDE
          The instance of the Avantgarde type
static int AVANTGARDE_TYPE
          The Avantgarde type
static OOP2002Example.types.LineType CLASSIC
          The instance of the Classic type
static int CLASSIC_TYPE
          The Classic type
static OOP2002Example.types.LineType ELEGANCE
          The instance of the Elegance type
static int ELEGANCE_TYPE
          The Elegance type
private  java.lang.String stringValue
           
private  int type
           
 
Constructor Summary
private LineType(int type, java.lang.String value)
           
 
Method Summary
static java.util.Enumeration enumerate()
          Returns an enumeration of all possible instances of LineType
 int getType()
          Returns the type of this LineType
private static java.util.Hashtable init()
           
 java.lang.String toString()
          Returns the String representation of this LineType
static OOP2002Example.types.LineType valueOf(java.lang.String string)
          Returns a new LineType 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

CLASSIC_TYPE

public static final int CLASSIC_TYPE
The Classic type

See Also:
Constant Field Values

CLASSIC

public static final OOP2002Example.types.LineType CLASSIC
The instance of the Classic type


ELEGANCE_TYPE

public static final int ELEGANCE_TYPE
The Elegance type

See Also:
Constant Field Values

ELEGANCE

public static final OOP2002Example.types.LineType ELEGANCE
The instance of the Elegance type


AVANTGARDE_TYPE

public static final int AVANTGARDE_TYPE
The Avantgarde type

See Also:
Constant Field Values

AVANTGARDE

public static final OOP2002Example.types.LineType AVANTGARDE
The instance of the Avantgarde type


_memberTable

private static java.util.Hashtable _memberTable

type

private int type

stringValue

private java.lang.String stringValue
Constructor Detail

LineType

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

enumerate

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


getType

public int getType()
Returns the type of this LineType


init

private static java.util.Hashtable init()

toString

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

Overrides:
toString in class java.lang.Object

valueOf

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

Parameters:
string -