edu.cmu.andrew.icalendar
Class AgendaType

java.lang.Object
  |
  +--edu.cmu.andrew.icalendar.AgendaType

public final class AgendaType
extends Object


Field Summary
private static Map bychar
           
private static Map bystring
           
private  char c
           
static AgendaType DYNAMIC
           
static AgendaType LOCATION
           
private  String name
           
static AgendaType ORGANIZATION
           
static AgendaType PERSON
           
static AgendaType RESOURCE
           
static AgendaType UNKNOWN
           
 
Constructor Summary
private AgendaType(String name, char c)
           
 
Method Summary
 char toChar()
           
 String toString()
           
static AgendaType valueOf(char c)
           
static AgendaType valueOf(String s)
          Resolve a string to the appropriate AgendaType.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

name

private final String name

c

private final char c

bychar

private static Map bychar

bystring

private static Map bystring

PERSON

public static final AgendaType PERSON

LOCATION

public static final AgendaType LOCATION

RESOURCE

public static final AgendaType RESOURCE

DYNAMIC

public static final AgendaType DYNAMIC

ORGANIZATION

public static final AgendaType ORGANIZATION

UNKNOWN

public static final AgendaType UNKNOWN
Constructor Detail

AgendaType

private AgendaType(String name,
                   char c)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

toChar

public char toChar()

valueOf

public static AgendaType valueOf(String s)
Resolve a string to the appropriate AgendaType.
Parameters:
s - the string representation of AgendaType.
Returns:
the AgendaType or null if there is no such AgendaType.

valueOf

public static AgendaType valueOf(char c)