|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.treesched.AbstractSchedule
org.treesched.ConstrainedSchedule
org.treesched.schedules.DayOfMonthSchedule
Implement a schedule based on days of the month. The day of the month is given as an integer, but unlike the java GregorianCalander, 0 and negative numbers are taken to be this month, not the previous month. i.e. on="0" is the last day of the month.
Typical configuration is
<dayofmonth from="17" to="22"/>
<dayofmonth on="15"/>
| Constructor Summary | |
DayOfMonthSchedule()
|
|
| Method Summary | |
java.util.Date |
getEndDate(java.util.Date now)
For the given time, calculate when this schedule interval should finish. |
java.lang.String |
getFrom()
Get the from date/time as a String. |
java.util.Date |
getStartDate(java.util.Date now)
For the given time, calculate when this schedule should start or should have started. |
java.lang.String |
getTo()
Get the to date/time as a String. |
void |
setFrom(java.lang.String from)
Set the from date/time as a String. |
void |
setTo(java.lang.String to)
Set the to date/time as a String. |
| Methods inherited from class org.treesched.ConstrainedSchedule |
nextDue, setOn, toString |
| Methods inherited from class org.treesched.AbstractSchedule |
addChildSchedule, getChildSchedule, getLimits, reset, setChildSchedule, setLimits |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public DayOfMonthSchedule()
| Method Detail |
public void setFrom(java.lang.String from)
ConstrainedSchedule
setFrom in class ConstrainedSchedulefrom - The from date.public java.lang.String getFrom()
ConstrainedSchedule
getFrom in class ConstrainedSchedulepublic void setTo(java.lang.String to)
ConstrainedSchedule
setTo in class ConstrainedScheduleto - The to date.public java.lang.String getTo()
ConstrainedSchedule
getTo in class ConstrainedSchedulepublic java.util.Date getStartDate(java.util.Date now)
ConstrainedSchedule
getStartDate in class ConstrainedSchedulenow - The date/time now.
public java.util.Date getEndDate(java.util.Date now)
ConstrainedSchedule
getEndDate in class ConstrainedSchedulenow - The date/time now.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||