public class YearMonthDayOfWeekCronExpression extends CronExpression
This implementation generates expression for yearly scheduling dates using week of month, day of week, month, and year. week of month: CronSpecialChars.FIRST, CronSpecialChars.SECOND, CronSpecialChars.THIRD, CronSpecialChars.FOURTH, CronSpecialChars.FIFTH day of week: CronSpecialChars.SUN, CronSpecialChars.MON, CronSpecialChars.TUE, CronSpecialChars.WED, CronSpecialChars.THU, CronSpecialChars.FRI, CronSpecialChars.SAT month: CronSpecialChars.FEB, CronSpecialChars.MAR, CronSpecialChars.APR, CronSpecialChars.MAY, CronSpecialChars.JUN, CronSpecialChars.JUL, CronSpecialChars.AUG, CronSpecialChars.SEP, CronSpecialChars.OCT, CronSpecialChars.NOV, CronSpecialChars.DEC year: 2009, 2010, etc... Note: Start date is skipped, date boundary is handled by ScheduleSequence implementation during schedule generation. e.g. Start Date : 02/24/09, Time : 10:10 (hh:mm) Format (second minute hour day month year) Generated Expression : 0 10 10 ? JAN MONL 2009/1 Explanation: Generate dates for every last Monday in January of every year at 10:10 (hh:mm), starting from 2009. e.g. Start Date : 02/24/09, Time : 10:10 (hh:mm) Format (second minute hour day month year) Generated Expression : 0 10 10 ? JAN MONL 2009/2 Explanation: Generate dates for every last Monday in January of every other year at 10:10 (hh:mm), starting from 2009.
SECONDS| Constructor and Description |
|---|
YearMonthDayOfWeekCronExpression(Date startDate,
Time24HrFmt time,
CronSpecialChars weekOfMonth,
CronSpecialChars dayOfWeek,
CronSpecialChars month,
Integer frequencyInYear) |
| Modifier and Type | Method and Description |
|---|---|
String |
getExpression()
This method implementation must provide valid Cron Expression.
|
getStartDate, getTimepublic YearMonthDayOfWeekCronExpression(Date startDate, Time24HrFmt time, CronSpecialChars weekOfMonth, CronSpecialChars dayOfWeek, CronSpecialChars month, Integer frequencyInYear) throws ParseException
ParseExceptionpublic String getExpression()
CronExpressiongetExpression in class CronExpressionCopyright © 2013 The Kuali Foundation. All Rights Reserved.