public final class ScheduleList extends Object implements Serializable, Schedule
<schedules:list xmlns:schedules="http://rgordon.co.uk/oddjob/schedules"> <schedules> <schedules:weekly on="Monday"/> <schedules:weekly on="Friday"/> </schedules> </schedules:list>
Constructor and Description |
---|
ScheduleList() |
Modifier and Type | Method and Description |
---|---|
Schedule[] |
getSchedules() |
Schedule |
getSchedules(int index) |
ScheduleResult |
nextDue(ScheduleContext context)
For a given date a schedule will provide the interval this schedule
should next be scheduled in.
|
void |
setSchedules(int index,
Schedule schedule) |
void |
setSchedules(Schedule[] schedules) |
int |
size()
The number of subschedules this list contains.
|
String |
toString()
Override toString to be more useful.
|
public void setSchedules(int index, Schedule schedule)
public Schedule getSchedules(int index)
public void setSchedules(Schedule[] schedules)
public Schedule[] getSchedules()
public int size()
public ScheduleResult nextDue(ScheduleContext context)
Schedule
If the schedule is never due again for the given date, null is returned.