CLRA 0.1.2

com.clra.rowing
Class RowingSessionState

java.lang.Object
  |
  +--com.clra.rowing.RowingSessionState
All Implemented Interfaces:
Comparable, Serializable

public class RowingSessionState
extends Object
implements Comparable, Serializable

Represents the state of a rowing session.

Version:
$Id: RowingSessionState.java,v 1.2 2002/02/18 18:04:59 rphall Exp $
Author:
Rick Hall
See Also:
Serialized Form

Field Summary
static RowingSessionState BOATING1
           
static RowingSessionState BOATING2
           
static RowingSessionState CANCELLED
           
static RowingSessionState CLOSED
           
static RowingSessionState COMPLETE
           
static RowingSessionState INVOICING
           
static RowingSessionState LOCKED
           
static String NAME_BOATING1
          Initial boatings
static String NAME_BOATING2
          Final boatings
static String NAME_CANCELLED
           
static String NAME_CLOSED
           
static String NAME_COMPLETE
          Attendance.
static String NAME_INVOICING
           
static String NAME_LOCKED
           
static String NAME_NEW
           
static String NAME_OPEN
           
static String NAME_TENATIVE
           
static RowingSessionState NEW
           
static RowingSessionState OPEN
           
static RowingSessionState TENATIVE
           
 
Constructor Summary
protected RowingSessionState(String name)
           
 
Method Summary
 int compareTo(Object o)
          Compares a level to other levels and valid level names.
 boolean equals(Object o)
           
 String getName()
           
static RowingSessionState getState(String name)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NAME_NEW

public static final String NAME_NEW

NAME_TENATIVE

public static final String NAME_TENATIVE

NAME_OPEN

public static final String NAME_OPEN

NAME_LOCKED

public static final String NAME_LOCKED

NAME_BOATING1

public static final String NAME_BOATING1
Initial boatings

NAME_BOATING2

public static final String NAME_BOATING2
Final boatings

NAME_COMPLETE

public static final String NAME_COMPLETE
Attendance. (Combine with BOATING2?)

NAME_INVOICING

public static final String NAME_INVOICING

NAME_CLOSED

public static final String NAME_CLOSED

NAME_CANCELLED

public static final String NAME_CANCELLED

NEW

public static final RowingSessionState NEW

TENATIVE

public static final RowingSessionState TENATIVE

OPEN

public static final RowingSessionState OPEN

LOCKED

public static final RowingSessionState LOCKED

BOATING1

public static final RowingSessionState BOATING1

BOATING2

public static final RowingSessionState BOATING2

COMPLETE

public static final RowingSessionState COMPLETE

INVOICING

public static final RowingSessionState INVOICING

CLOSED

public static final RowingSessionState CLOSED

CANCELLED

public static final RowingSessionState CANCELLED
Constructor Detail

RowingSessionState

protected RowingSessionState(String name)
Method Detail

getState

public static RowingSessionState getState(String name)
                                   throws RowingException

getName

public String getName()

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

public int compareTo(Object o)
Compares a level to other levels and valid level names. The default order is described in the documentation for DefaultRowingSessionStateComparator
Specified by:
compareTo in interface Comparable
Parameters:
o - a non-null RowingSessionLevel or a String NAME of a level
See Also:
DefaultRowingSessionStateComparator

CLRA 0.1.2