Class CalendarException

java.lang.Object
com.aspose.tasks.cloud.model.CalendarException

public class CalendarException extends Object
Represent exceptional time periods in a calendar.
  • Constructor Details

    • CalendarException

      public CalendarException()
  • Method Details

    • index

      public CalendarException index(Integer index)
    • getIndex

      public Integer getIndex()
      Index of the current item in the collection of calendar's exceptions.
      Returns:
      index
    • setIndex

      public void setIndex(Integer index)
    • enteredByOccurrences

      public CalendarException enteredByOccurrences(Boolean enteredByOccurrences)
    • isEnteredByOccurrences

      public Boolean 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

      public void setEnteredByOccurrences(Boolean enteredByOccurrences)
    • fromDate

      public CalendarException fromDate(org.threeten.bp.OffsetDateTime 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

      public CalendarException toDate(org.threeten.bp.OffsetDateTime 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

      public CalendarException occurrences(Integer occurrences)
    • getOccurrences

      public Integer getOccurrences()
      The number of occurrences for which the calendar exception is valid.
      Returns:
      occurrences
    • setOccurrences

      public void setOccurrences(Integer occurrences)
    • name

      public CalendarException name(String name)
    • getName

      public String getName()
      The name of the exception.
      Returns:
      name
    • setName

      public void setName(String name)
    • type

    • getType

      public CalendarExceptionType getType()
      The exception type.
      Returns:
      type
    • setType

      public void setType(CalendarExceptionType type)
    • period

      public CalendarException period(Integer period)
    • getPeriod

      public Integer getPeriod()
      The period of recurrence for the exception.
      Returns:
      period
    • setPeriod

      public void setPeriod(Integer period)
    • daysOfWeek

      public CalendarException daysOfWeek(List<DayType> daysOfWeek)
    • addDaysOfWeekItem

      public CalendarException addDaysOfWeekItem(DayType daysOfWeekItem)
    • getDaysOfWeek

      public List<DayType> getDaysOfWeek()
      The days of the week on which the exception is valid.
      Returns:
      daysOfWeek
    • setDaysOfWeek

      public void setDaysOfWeek(List<DayType> daysOfWeek)
    • monthItem

      public CalendarException monthItem(MonthItemType monthItem)
    • getMonthItem

      public MonthItemType getMonthItem()
      The month item for which an exception recurrence is scheduled.
      Returns:
      monthItem
    • setMonthItem

      public void setMonthItem(MonthItemType monthItem)
    • monthPosition

      public CalendarException monthPosition(MonthPosition monthPosition)
    • getMonthPosition

      public MonthPosition getMonthPosition()
      The position of a month item within a month.
      Returns:
      monthPosition
    • setMonthPosition

      public void setMonthPosition(MonthPosition monthPosition)
    • month

      public CalendarException month(Month month)
    • getMonth

      public Month getMonth()
      The month for which an exception recurrence is scheduled.
      Returns:
      month
    • setMonth

      public void setMonth(Month month)
    • monthDay

      public CalendarException monthDay(Integer monthDay)
    • getMonthDay

      public Integer getMonthDay()
      The day of a month on which an exception recurrence is scheduled.
      Returns:
      monthDay
    • setMonthDay

      public void setMonthDay(Integer monthDay)
    • dayWorking

      public CalendarException dayWorking(Boolean dayWorking)
    • isDayWorking

      public Boolean isDayWorking()
      Determines whether the specified date or day type is working.
      Returns:
      dayWorking
    • setDayWorking

      public void setDayWorking(Boolean dayWorking)
    • workingTimes

      public CalendarException workingTimes(List<WorkingTime> workingTimes)
    • addWorkingTimesItem

      public CalendarException addWorkingTimesItem(WorkingTime workingTimesItem)
    • getWorkingTimes

      public List<WorkingTime> 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

      public void setWorkingTimes(List<WorkingTime> workingTimes)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object