com.sap.ip.collaboration.gw.api.enum
Class AbstractEnum

java.lang.Object
  |
  +--com.sap.ip.collaboration.gw.api.enum.AbstractEnum
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AvailabilityType, GroupwareItemType, TransportType

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

Base class for enumeration types

Copyright (c) SAP 2002

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

Inner Class Summary
protected static class AbstractEnum.StringIterator
           
 
Field Summary
protected  java.lang.String value
           
 
Constructor Summary
protected AbstractEnum(java.lang.String value)
          construct a new Enumeration object with a specified name
 
Method Summary
 java.lang.String getStringValue()
          get the String name associated with the enumerator
 java.lang.String toString()
          get the String name associated with the enumerator
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

value

protected java.lang.String value
Constructor Detail

AbstractEnum

protected AbstractEnum(java.lang.String value)
construct a new Enumeration object with a specified name
Parameters:
value - a String identifying the enumerator
Method Detail

getStringValue

public java.lang.String getStringValue()
get the String name associated with the enumerator
Returns:
the name used in the constructor.

toString

public java.lang.String toString()
get the String name associated with the enumerator
Overrides:
toString in class java.lang.Object
Returns:
the name used in the constructor.