org.oddjob.schedules
Class AbstractSchedule

java.lang.Object
  extended by org.oddjob.schedules.AbstractSchedule
All Implemented Interfaces:
Serializable, RefineableSchedule, Schedule
Direct Known Subclasses:
AfterSchedule, ConstrainedSchedule, CountSchedule, DateSchedule, DayAfterSchedule, DayBeforeSchedule, LastSchedule, OccurrenceSchedule, TimeSchedule

public abstract class AbstractSchedule
extends Object
implements Serializable, RefineableSchedule

Provide a basis of common functionality for schedules.

See Also:
Serialized Form
Author:
Rob Gordon

Constructor Summary
AbstractSchedule()
           
 
Method Summary
 Schedule getRefinement()
          Return the child schedule.
 void setRefinement(Schedule childSchedule)
          Add a child schedule of the given name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.oddjob.schedules.Schedule
nextDue
 

Constructor Detail

AbstractSchedule

public AbstractSchedule()
Method Detail

setRefinement

public void setRefinement(Schedule childSchedule)
Description copied from interface: RefineableSchedule
Add a child schedule of the given name. The implementing class will typically use a factory to create the schedule, add it to it's list of child schedules, and return it so that it's attributes may be set by the calling application.

Specified by:
setRefinement in interface RefineableSchedule

Property: refinement

Description: Provide a refinement to this schedule.

Required: No.

Parameters:
The - refinement.

getRefinement

public Schedule getRefinement()
Return the child schedule.

Returns:
The child schedule.