edu.pdx.cs399J
Class AbstractAppointment

java.lang.Object
  extended by edu.pdx.cs399J.AbstractAppointment

public abstract class AbstractAppointment
extends Object

This class represents an appointment found in an appointment book. Each appointment has a beginning and ending time, as well as a text message describing itself.

Author:
David Whitlock

Constructor Summary
AbstractAppointment()
           
 
Method Summary
 Date getBeginTime()
          Returns the Date that this appointment begins.
abstract  String getBeginTimeString()
          Returns a String describing the beginning date and time of this appointment.
abstract  String getDescription()
          Returns a description of this appointment (for instance, "Have coffee with Marsha").
 Date getEndTime()
          Returns the Date that this appointment ends.
abstract  String getEndTimeString()
          Returns a String describing the ending date and time of this appointment.
 String toString()
          Returns a brief textual summary of this appointment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractAppointment

public AbstractAppointment()
Method Detail

getBeginTimeString

public abstract String getBeginTimeString()
Returns a String describing the beginning date and time of this appointment.


getEndTimeString

public abstract String getEndTimeString()
Returns a String describing the ending date and time of this appointment.


getBeginTime

public Date getBeginTime()
Returns the Date that this appointment begins.


getEndTime

public Date getEndTime()
Returns the Date that this appointment ends.


getDescription

public abstract String getDescription()
Returns a description of this appointment (for instance, "Have coffee with Marsha").


toString

public String toString()
Returns a brief textual summary of this appointment.

Overrides:
toString in class Object


Copyright © 2000-2009 Portland State University. All Rights Reserved.