Package com.redwood.scheduler.api.date
Interface RecurrenceInfo
- 
 public interface RecurrenceInfoRetrieve recurrence information
- 
- 
Field SummaryFields Modifier and Type Field Description static charDATES_PATTERNstatic charDAY_PATTERNstatic charMONTH_PATTERNstatic charNONE_PATTERNstatic charWEEK_PATTERNstatic charWEEKEND_PATTERNstatic charWORKDAY_PATTERNstatic charYEAR_PATTERN
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetDates()List<DateTimeZone>getDateTimeZones()LonggetDayInterval()Every<getDayInterval>daysDateTimeZonegetEndDate()LonggetMonthDayOrWeekNumber()LonggetMonthDayType()LonggetMonthInterval()Every<getMonthInterval>monthschargetPatternType()intgetRequiredOccurrencesCount()DateTimeZonegetStartDateAndTime()TimeZonegetTimeZone()StringgetWeekDays()Days of the week, coded in a string of 0 (job does not run) and 1 (job runs).LonggetWeekInterval()Every<getWeekInterval>weeksLonggetYearDayOrWeekNumber()LonggetYearDayType()LonggetYearMonth()booleanisNeverEnding()booleanisRangeExternal()booleanisWeekdayChecked(int aWeekdayIndex)
 
- 
- 
- 
Field Detail- 
NONE_PATTERNstatic final char NONE_PATTERN - See Also:
- Constant Field Values
 
 - 
DAY_PATTERNstatic final char DAY_PATTERN - See Also:
- Constant Field Values
 
 - 
WEEK_PATTERNstatic final char WEEK_PATTERN - See Also:
- Constant Field Values
 
 - 
WORKDAY_PATTERNstatic final char WORKDAY_PATTERN - See Also:
- Constant Field Values
 
 - 
WEEKEND_PATTERNstatic final char WEEKEND_PATTERN - See Also:
- Constant Field Values
 
 - 
MONTH_PATTERNstatic final char MONTH_PATTERN - See Also:
- Constant Field Values
 
 - 
YEAR_PATTERNstatic final char YEAR_PATTERN - See Also:
- Constant Field Values
 
 - 
DATES_PATTERNstatic final char DATES_PATTERN - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getPatternTypechar getPatternType() 
 - 
getStartDateAndTimeDateTimeZone getStartDateAndTime() 
 - 
getTimeZoneTimeZone getTimeZone() 
 - 
getDayIntervalLong getDayInterval() Every<getDayInterval>days- Returns:
- The number of days to the next occurrence, 0 if the pattern is not daily
 
 - 
getWeekIntervalLong getWeekInterval() Every<getWeekInterval>weeks- Returns:
- The number of weeks to the next occurrence
 
 - 
getWeekDaysString getWeekDays() Days of the week, coded in a string of 0 (job does not run) and 1 (job runs). The string holds Sunday to Saturday.- Returns:
- String with coded weekdays, an empty string if the pattern is not weekly
 
 - 
isWeekdayCheckedboolean isWeekdayChecked(int aWeekdayIndex) - Parameters:
- aWeekdayIndex- for weekdays, Sunday = 0, Saturday = 6.
- Returns:
- true if job runs on the requested weekday
- Throws:
- IndexOutOfBoundsException- - if the index argument is negative or not less than the number of days in a week, or if the pattern is not weekly
 
 - 
getMonthDayTypeLong getMonthDayType() - Returns:
- The type of day: Calendar.SUN .. Calendar.SAT, DateTimeZone.ANYDAY, WEEKEND, WORKDAY
 
 - 
getMonthIntervalLong getMonthInterval() Every<getMonthInterval>months- Returns:
- The number of months to the next occurrence, 0 if the pattern is not monthly
 
 - 
getMonthDayOrWeekNumberLong getMonthDayOrWeekNumber() - Returns:
- the day number for ANYDAY, WORKDAY; the week number for all others, 0 if the pattern is not monthly
 
 - 
getYearDayTypeLong getYearDayType() - Returns:
- The type of day: Calendar.SUN .. Calendar.SAT, DateTimeZone.ANYDAY, WEEKEND, WORKDAY, 0 if the pattern is not yearly
 
 - 
getYearDayOrWeekNumberLong getYearDayOrWeekNumber() - Returns:
- the day in the month for ANYDAY, WORKDAY; the week number for all others, 0 if the pattern is not yearly
 
 - 
getYearMonthLong getYearMonth() - Returns:
- the month in the year in which the jobs must run, 0 if the pattern is not yearly
 
 - 
getDatesString getDates() - Returns:
- dates as a comma-separated list in YYYYMMDD format, or an empty string if the recurrence does not define any Dates
 
 - 
getDateTimeZonesList<DateTimeZone> getDateTimeZones() - Returns:
- dates as a sorted DateTimeZone List. The list if empty if the does not define any Dates
 
 - 
isRangeExternalboolean isRangeExternal() - Returns:
- true if the range is defined on the job group, false if the range is defined in the recurrence pattern string (pre-M33)
 
 - 
getEndDateDateTimeZone getEndDate() - Returns:
- the end date of the recurrence
 
 - 
getRequiredOccurrencesCountint getRequiredOccurrencesCount() - Returns:
- the number of jobs that must be presubmitted for this recurrence
 
 - 
isNeverEndingboolean isNeverEnding() - Returns:
- true if the recurrence does not stop, otherwise the recurrence stops by end date or required number of occurrences
 
 
- 
 
-