|
|||||||||
| 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.schedules.DateSchedule
Any number of nested sub schedules are allowed.
<date on="25-dec-04"/>
| Constructor Summary | |
DateSchedule()
|
|
| Method Summary | |
java.util.Date |
getEndDate(ScheduleContext context)
Return the end date. |
java.lang.String |
getFrom()
Get the from Date as a String. |
java.util.Date |
getStartDate(ScheduleContext context)
Return the start date. |
java.lang.String |
getTo()
Return the to date as a string. |
Interval |
nextDue(ScheduleContext context)
For a given date a schedule will provide the interval this schedule should next be scheduled in. |
void |
setFrom(java.lang.String startDateString)
|
void |
setOn(java.lang.String on)
|
void |
setTo(java.lang.String endDateString)
|
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 DateSchedule()
| Method Detail |
public void setFrom(java.lang.String startDateString)
startDateString - The from date. May be null which
indicates the beginning of the time.
java.text.ParseException - If the String isn't a Date.public java.lang.String getFrom()
public void setTo(java.lang.String endDateString)
endDateString - The end date. May be null.
java.text.ParseException - If the string isn't a valid date.public java.lang.String getTo()
public void setOn(java.lang.String on)
java.text.ParseException - If the string isn't a date.public java.util.Date getStartDate(ScheduleContext context)
public java.util.Date getEndDate(ScheduleContext context)
public Interval nextDue(ScheduleContext context)
ScheduleIf the schedule is never due again for the given date, null is returned.
nextDue in interface Schedulepublic java.lang.String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||