|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.oddjob.schedules.AbstractSchedule
org.oddjob.schedules.ConstrainedSchedule
A base class for a Schedule which has a from and a to date.
| Constructor Summary | |
ConstrainedSchedule()
|
|
| Method Summary | |
abstract java.util.Date |
getEndDate(ScheduleContext context)
For the given time, calculate when this schedule interval should finish. |
abstract java.lang.String |
getFrom()
Get the from date/time as a String. |
abstract java.util.Date |
getStartDate(ScheduleContext context)
For the given time, calculate when this schedule should start or should have started. |
abstract java.lang.String |
getTo()
Get the to date/time as a String. |
Interval |
nextDue(ScheduleContext context)
For a given date a schedule will provide the interval this schedule should next be scheduled in. |
abstract void |
setFrom(java.lang.String from)
|
void |
setOn(java.lang.String on)
|
abstract void |
setTo(java.lang.String to)
|
java.lang.String |
toString()
Override toString. |
| Methods inherited from class org.oddjob.schedules.AbstractSchedule |
addValueSchedule, getChildSchedule, getLimits, setChildSchedule, setLimits |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ConstrainedSchedule()
| Method Detail |
public abstract void setFrom(java.lang.String from)
from - The from date.public abstract java.lang.String getFrom()
public abstract void setTo(java.lang.String to)
to - The to date.public abstract java.lang.String getTo()
public abstract java.util.Date getStartDate(ScheduleContext context)
public abstract java.util.Date getEndDate(ScheduleContext context)
public void setOn(java.lang.String on)
java.text.ParseException - If the string isn't a date.public Interval nextDue(ScheduleContext context)
ScheduleIf the schedule is never due again for the given date, null is returned.
public java.lang.String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||