CLRA 0.1.2

com.clra.rowing
Class Attendance

java.lang.Object
  |
  +--com.clra.rowing.Attendance
All Implemented Interfaces:
Serializable

public class Attendance
extends Object
implements Serializable

Defines the possible attendance values for a participant in a rowing session.

Version:
$Id: Attendance.java,v 1.2 2002/02/18 18:03:42 rphall Exp $
Author:
Rick Hall
See Also:
Serialized Form

Field Summary
static Attendance ABSENT
           
static String NAME_ABSENT
          Indicates that a signed-up participant did not show up for a practice, but either was not assigned, or was assigned but found a substitute.
static String NAME_PRESENT
          Indicates that a participant showed up for a practice, regardless of whether participant was a signup, a substitute, or an extra.
static Attendance PRESENT
           
 
Constructor Summary
protected Attendance(String name)
           
 
Method Summary
 boolean equals(Object o)
           
static Attendance getAttendance(String name)
          Attendance is not a required field in a participant record, therefore if a null or blank name is passed to this method, an IllegalArgumentException is NOT thrown, but rather a null instance is returned.
 String getName()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NAME_PRESENT

public static final String NAME_PRESENT
Indicates that a participant showed up for a practice, regardless of whether participant was a signup, a substitute, or an extra.

NAME_ABSENT

public static final String NAME_ABSENT
Indicates that a signed-up participant did not show up for a practice, but either was not assigned, or was assigned but found a substitute.

PRESENT

public static final Attendance PRESENT

ABSENT

public static final Attendance ABSENT
Constructor Detail

Attendance

protected Attendance(String name)
Method Detail

getAttendance

public static Attendance getAttendance(String name)
                                throws RowingException
Attendance is not a required field in a participant record, therefore if a null or blank name is passed to this method, an IllegalArgumentException is NOT thrown, but rather a null instance is returned.

Note: values not defined by this class, will throw a RowingException.


getName

public String getName()

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

CLRA 0.1.2