com.aspose.tasks

Interfaces

Classes

Exceptions

com.aspose.tasks

Class CalendarException



  • public class CalendarException
    extends Object

    Represent exceptional time periods in a calendar.

    • Constructor Detail

      • CalendarException

        public CalendarException()

        Initializes a new instance of the CalendarException class.

    • Method Detail

      • checkException

        public final boolean checkException(Date dt)

        Returns true if the specified instance of the Date struct is the exception day

        Parameters:
        dt - the specified instance of the Date struct.
        Returns:
        Returns true if dt is the exception day; otherwise, false.
      • delete

        public final void delete()

        Deletes the Exception instance from parent calendar CalendarExceptionCollection object.

      • getDayWorking

        public final boolean getDayWorking()

        Gets a value indicating whether the specified date or day type is working. Read/write boolean.

        Returns:
        a value indicating whether the specified date or day type is working.
      • setDayWorking

        public final void setDayWorking(boolean value)

        Sets a value indicating whether the specified date or day type is working. Read/write boolean.

        Parameters:
        value - a value indicating whether the specified date or day type is working.
      • getDaysOfWeek

        public final DayTypeCollection getDaysOfWeek()

        Gets the DayTypeCollection for this object. The days of the week on which the exception is valid. Read only DayTypeCollection instance.

        Returns:
        the DayTypeCollection for this object.
      • getEnteredByOccurrences

        public final boolean getEnteredByOccurrences()

        Gets a value indicating 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. Read/write boolean.

        Returns:
        a value indicating whether the range of recurrence is defined by entering a number of occurrences.
      • setEnteredByOccurrences

        public final void setEnteredByOccurrences(boolean value)

        Sets a value indicating 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. Read/write boolean.

        Parameters:
        value - a value indicating whether the range of recurrence is defined by entering a number of occurrences.
      • getFromDate

        public final Date getFromDate()

        Gets the beginning of the exception time. Read/write Date.

        Returns:
        the beginning of the exception time.
      • setFromDate

        public final void setFromDate(Date value)

        Sets the beginning of the exception time. Read/write Date.

        Parameters:
        value - the beginning of the exception time.
      • getMonth

        public final int getMonth()

        Gets the month for which an exception recurrence is scheduled. Read/write Month.

        Returns:
        the month for which an exception recurrence is scheduled.
      • setMonth

        public final void setMonth(int value)

        Sets the month for which an exception recurrence is scheduled. Read/write Month.

        Parameters:
        value - the month for which an exception recurrence is scheduled.
      • getMonthDay

        public final int getMonthDay()

        Gets the day of a month on which an exception recurrence is scheduled. Read/write int.

        Returns:
        the day of a month on which an exception recurrence is scheduled.
      • setMonthDay

        public final void setMonthDay(int value)

        Sets the day of a month on which an exception recurrence is scheduled. Read/write int.

        Parameters:
        value - the day of a month on which an exception recurrence is scheduled.
      • getMonthItem

        public final int getMonthItem()

        Gets the month item for which an exception recurrence is scheduled. Read/write MonthItemType.

        Returns:
        the month item for which an exception recurrence is scheduled.
      • setMonthItem

        public final void setMonthItem(int value)

        Sets the month item for which an exception recurrence is scheduled. Read/write MonthItemType.

        Parameters:
        value - the month item for which an exception recurrence is scheduled.
      • getMonthPosition

        public final int getMonthPosition()

        Gets the position of a month item within a month. Read/write MonthPosition.

        Returns:
        the position of a month item within a month.
      • setMonthPosition

        public final void setMonthPosition(int value)

        Sets the position of a month item within a month. Read/write MonthPosition.

        Parameters:
        value - the position of a month item within a month.
      • getName

        public final String getName()

        Gets the name of the exception. Read/write String.

        Returns:
        the name of the exception.
      • setName

        public final void setName(String value)

        Sets the name of the exception. Read/write String.

        Parameters:
        value - the name of the exception.
      • getOccurrences

        public final int getOccurrences()

        Gets the number of occurrences for which the calendar exception is valid. Read/write int.

        Returns:
        the number of occurrences for which the calendar exception is valid.
      • setOccurrences

        public final void setOccurrences(int value)

        Sets the number of occurrences for which the calendar exception is valid. Read/write int.

        Parameters:
        value - the number of occurrences for which the calendar exception is valid.
      • getParentCalendar

        public final Calendar getParentCalendar()

        Gets the parent calendar for this object.


        Read only Calendar.

        Returns:
        the parent calendar for this object.
      • getPeriod

        public final int getPeriod()

        Gets the period of recurrence for the exception. Read/write int.

        Returns:
        the period of recurrence for the exception.
      • setPeriod

        public final void setPeriod(int value)

        Sets the period of recurrence for the exception. Read/write int.

        Parameters:
        value - the period of recurrence for the exception.
      • getToDate

        public final Date getToDate()

        Gets the end of the exception time. Read/write Date.

        Returns:
        the end of the exception time.
      • setToDate

        public final void setToDate(Date value)

        Sets the end of the exception time. Read/write Date.

        Parameters:
        value - the end of the exception time.
      • getType

        public final int getType()

        Gets the exception type. Read/write CalendarExceptionType.

        Returns:
        the exception type.
      • setType

        public final void setType(int value)

        Sets the exception type. Read/write CalendarExceptionType.

        Parameters:
        value - the exception type.
      • getWorkingTime

        public final double getWorkingTime()

        Returns the working time for a calendar exception.

        Returns:
        Returns working time for this calendar exception.
      • getWorkingTimes

        public final WorkingTimeCollection getWorkingTimes()

        Gets the WorkingTimeCollection object. The collection of working times that defines the time worked on the weekday. Read only WorkingTimeCollection instance.


        At least one working time must present, and there can't be more than five.

        Returns:
        the WorkingTimeCollection object.
      • setWorkingTimes

        public final void setWorkingTimes(WorkingTimeCollection value)

        Sets the WorkingTimeCollection object. The collection of working times that defines the time worked on the weekday. Read only WorkingTimeCollection instance.


        At least one working time must present, and there can't be more than five.

        Parameters:
        value - the WorkingTimeCollection object.