public class RecurringData extends Object
Constructor and Description |
---|
RecurringData() |
Modifier and Type | Method and Description |
---|---|
LocalDate |
getCalculatedFirstDate()
Retrieve the first calculated date on which an exception
will actually occur.
|
LocalDate |
getCalculatedLastDate()
Retrieve the last calculated date on which an exception
will actually occur.
|
LocalDate[] |
getDates()
Retrieve the set of start dates represented by this recurrence data.
|
Integer |
getDayNumber()
Retrieves the monthly or yearly absolute day number.
|
DayOfWeek |
getDayOfWeek()
Retrieves the monthly or yearly relative day of the week.
|
LocalDate |
getFinishDate()
Gets the finish date of this recurrence.
|
Integer |
getFrequency()
Retrieves the recurrence frequency.
|
Integer |
getMonthNumber()
Retrieves the yearly month number.
|
Integer |
getOccurrences()
Sets the number of occurrences.
|
RecurrenceType |
getRecurrenceType()
Retrieves the recurrence type.
|
boolean |
getRelative()
Retrieves the relative flag.
|
LocalDate |
getStartDate()
Gets the start date of this recurrence.
|
boolean |
getUseEndDate()
Retrieves the use end date flag.
|
boolean |
getWeeklyDay(DayOfWeek day)
Returns true if this day is part of a weekly recurrence.
|
boolean |
getWorkingDaysOnly()
Returns true if daily recurrence applies to working days only.
|
boolean |
isValid()
Returns true if the configuration is valid,
i.e.
|
void |
setDayNumber(Integer day)
Sets the monthly or yearly absolute day number.
|
void |
setDayOfWeek(DayOfWeek day)
Sets the monthly or yearly relative day of the week.
|
void |
setFinishDate(LocalDate val)
Sets the finish date of this recurrence.
|
void |
setFrequency(Integer frequency)
Set the recurrence frequency.
|
void |
setMonthNumber(Integer month)
Sets the yearly month number.
|
void |
setOccurrences(Integer occurrences)
Retrieves the number of occurrences.
|
void |
setRecurrenceType(RecurrenceType type)
Sets the recurrence type.
|
void |
setRelative(boolean relative)
Sets the relative flag.
|
void |
setStartDate(LocalDate val)
Sets the start date of this recurrence.
|
void |
setUseEndDate(boolean useEndDate)
Sets the use end date flag.
|
void |
setWeeklyDay(DayOfWeek day,
boolean value)
Set the state of an individual day in a weekly recurrence.
|
void |
setWeeklyDaysFromBitmap(Integer days,
int[] masks)
Converts from a bitmap to individual day flags for a weekly recurrence,
using the array of masks.
|
void |
setWorkingDaysOnly(boolean workingDaysOnly)
Set to true if daily recurrence applies to working days only.
|
void |
setYearlyAbsoluteFromDate(LocalDate date)
Sets the yearly absolute date.
|
String |
toString() |
public LocalDate getStartDate()
public void setStartDate(LocalDate val)
val
- recurrence start datepublic LocalDate getFinishDate()
public void setFinishDate(LocalDate val)
val
- recurrence finish datepublic Integer getOccurrences()
public void setOccurrences(Integer occurrences)
occurrences
- number of occurrencespublic RecurrenceType getRecurrenceType()
public void setRecurrenceType(RecurrenceType type)
type
- recurrence typepublic boolean getUseEndDate()
public void setUseEndDate(boolean useEndDate)
useEndDate
- use end date flagpublic boolean getWorkingDaysOnly()
public void setWorkingDaysOnly(boolean workingDaysOnly)
workingDaysOnly
- true if daily recurrence applies to working days onlypublic boolean getWeeklyDay(DayOfWeek day)
day
- Day instancepublic void setWeeklyDay(DayOfWeek day, boolean value)
day
- Day instancevalue
- true if this day is included in the recurrencepublic void setWeeklyDaysFromBitmap(Integer days, int[] masks)
days
- bitmapmasks
- array of mask valuespublic boolean getRelative()
public void setRelative(boolean relative)
relative
- boolean flagpublic Integer getFrequency()
public void setFrequency(Integer frequency)
frequency
- recurrence frequencypublic DayOfWeek getDayOfWeek()
public void setDayOfWeek(DayOfWeek day)
day
- day of the weekpublic Integer getDayNumber()
public void setDayNumber(Integer day)
day
- absolute day numberpublic Integer getMonthNumber()
public void setMonthNumber(Integer month)
month
- month numberpublic LocalDate[] getDates()
public boolean isValid()
public LocalDate getCalculatedFirstDate()
public LocalDate getCalculatedLastDate()
public void setYearlyAbsoluteFromDate(LocalDate date)
date
- yearly absolute dateCopyright © 2000–2024 Packwood Software. All rights reserved.