edu.pdx.cs399J
Class AbstractAppointmentBook

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

public abstract class AbstractAppointmentBook
extends Object

This class represents an appointment book that holds multiple appointments. Each appointment book has an owner.

Author:
David Whitlock

Constructor Summary
AbstractAppointmentBook()
           
 
Method Summary
abstract  void addAppointment(AbstractAppointment appt)
          Adds an appointment to this appointment book
abstract  Collection getAppointments()
          Returns all of the appointments in this appointment book as a collection of AbstractAppointments.
abstract  String getOwnerName()
          Returns the name of the owner of this appointment book.
 String toString()
          Returns a brief textual description of this appointment book
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractAppointmentBook

public AbstractAppointmentBook()
Method Detail

getOwnerName

public abstract String getOwnerName()
Returns the name of the owner of this appointment book.


getAppointments

public abstract Collection getAppointments()
Returns all of the appointments in this appointment book as a collection of AbstractAppointments.


addAppointment

public abstract void addAppointment(AbstractAppointment appt)
Adds an appointment to this appointment book


toString

public String toString()
Returns a brief textual description of this appointment book

Overrides:
toString in class Object


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