Package com.aspose.tasks.cloud.model
Class CalendarException
java.lang.Object
com.aspose.tasks.cloud.model.CalendarException
Represent exceptional time periods in a calendar.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDaysOfWeekItem
(DayType daysOfWeekItem) addWorkingTimesItem
(WorkingTime workingTimesItem) daysOfWeek
(List<DayType> daysOfWeek) dayWorking
(Boolean dayWorking) enteredByOccurrences
(Boolean enteredByOccurrences) boolean
fromDate
(org.threeten.bp.OffsetDateTime fromDate) The days of the week on which the exception is valid.org.threeten.bp.OffsetDateTime
The beginning of the exception time.getIndex()
Index of the current item in the collection of calendar's exceptions.getMonth()
The month for which an exception recurrence is scheduled.The day of a month on which an exception recurrence is scheduled.The month item for which an exception recurrence is scheduled.The position of a month item within a month.getName()
The name of the exception.The number of occurrences for which the calendar exception is valid.The period of recurrence for the exception.org.threeten.bp.OffsetDateTime
The end of the exception time.getType()
The exception type.The collection of working times that defines the time worked on the weekday.int
hashCode()
Determines whether the specified date or day type is working.Determines whether the range of recurrence is defined by entering a number of occurrences.monthItem
(MonthItemType monthItem) monthPosition
(MonthPosition monthPosition) occurrences
(Integer occurrences) void
setDaysOfWeek
(List<DayType> daysOfWeek) void
setDayWorking
(Boolean dayWorking) void
setEnteredByOccurrences
(Boolean enteredByOccurrences) void
setFromDate
(org.threeten.bp.OffsetDateTime fromDate) void
void
void
setMonthDay
(Integer monthDay) void
setMonthItem
(MonthItemType monthItem) void
setMonthPosition
(MonthPosition monthPosition) void
void
setOccurrences
(Integer occurrences) void
void
setToDate
(org.threeten.bp.OffsetDateTime toDate) void
setType
(CalendarExceptionType type) void
setWorkingTimes
(List<WorkingTime> workingTimes) toDate
(org.threeten.bp.OffsetDateTime toDate) toString()
type
(CalendarExceptionType type) workingTimes
(List<WorkingTime> workingTimes)
-
Constructor Details
-
CalendarException
public CalendarException()
-
-
Method Details
-
index
-
getIndex
Index of the current item in the collection of calendar's exceptions.- Returns:
- index
-
setIndex
-
enteredByOccurrences
-
isEnteredByOccurrences
Determines whether the range of recurrence is defined by entering a number of occurrences. False specifies that the range of recurrence is defined by entering a finish date.- Returns:
- enteredByOccurrences
-
setEnteredByOccurrences
-
fromDate
-
getFromDate
public org.threeten.bp.OffsetDateTime getFromDate()The beginning of the exception time.- Returns:
- fromDate
-
setFromDate
public void setFromDate(org.threeten.bp.OffsetDateTime fromDate) -
toDate
-
getToDate
public org.threeten.bp.OffsetDateTime getToDate()The end of the exception time.- Returns:
- toDate
-
setToDate
public void setToDate(org.threeten.bp.OffsetDateTime toDate) -
occurrences
-
getOccurrences
The number of occurrences for which the calendar exception is valid.- Returns:
- occurrences
-
setOccurrences
-
name
-
getName
The name of the exception.- Returns:
- name
-
setName
-
type
-
getType
The exception type.- Returns:
- type
-
setType
-
period
-
getPeriod
The period of recurrence for the exception.- Returns:
- period
-
setPeriod
-
daysOfWeek
-
addDaysOfWeekItem
-
getDaysOfWeek
The days of the week on which the exception is valid.- Returns:
- daysOfWeek
-
setDaysOfWeek
-
monthItem
-
getMonthItem
The month item for which an exception recurrence is scheduled.- Returns:
- monthItem
-
setMonthItem
-
monthPosition
-
getMonthPosition
The position of a month item within a month.- Returns:
- monthPosition
-
setMonthPosition
-
month
-
getMonth
The month for which an exception recurrence is scheduled.- Returns:
- month
-
setMonth
-
monthDay
-
getMonthDay
The day of a month on which an exception recurrence is scheduled.- Returns:
- monthDay
-
setMonthDay
-
dayWorking
-
isDayWorking
Determines whether the specified date or day type is working.- Returns:
- dayWorking
-
setDayWorking
-
workingTimes
-
addWorkingTimesItem
-
getWorkingTimes
The collection of working times that defines the time worked on the weekday. At least one working time must present, and there can't be more than five.- Returns:
- workingTimes
-
setWorkingTimes
-
equals
-
hashCode
public int hashCode() -
toString
-