public class CalendarException extends Object
Represent exceptional time periods in a calendar.
Constructor and Description |
---|
CalendarException()
Initializes a new instance of the
CalendarException class. |
Modifier and Type | Method and Description |
---|---|
boolean |
checkException(Date dt)
Returns true if the specified instance of the
Date struct is the exception day |
void |
delete()
Deletes the Exception instance from parent calendar CalendarExceptionCollection object.
|
DayTypeCollection |
getDaysOfWeek()
Gets the DayTypeCollection for this object.
|
boolean |
getDayWorking()
Gets a value indicating whether the specified date or day type is working.
|
boolean |
getEnteredByOccurrences()
Gets a value indicating whether the range of recurrence is defined by entering a number of occurrences.
|
Date |
getFromDate()
Gets the beginning of the exception time.
|
int |
getMonth()
Gets the month for which an exception recurrence is scheduled.
|
int |
getMonthDay()
Gets the day of a month on which an exception recurrence is scheduled.
|
int |
getMonthItem()
Gets the month item for which an exception recurrence is scheduled.
|
int |
getMonthPosition()
Gets the position of a month item within a month.
|
String |
getName()
Gets the name of the exception.
|
int |
getOccurrences()
Gets the number of occurrences for which the calendar exception is valid.
|
Calendar |
getParentCalendar()
Gets the parent calendar for this object.
|
int |
getPeriod()
Gets the period of recurrence for the exception.
|
Date |
getToDate()
Gets the end of the exception time.
|
int |
getType()
Gets the exception type.
|
double |
getWorkingTime()
Returns the working time for a calendar exception.
|
WorkingTimeCollection |
getWorkingTimes()
Gets the WorkingTimeCollection object.
|
void |
setDayWorking(boolean value)
Sets a value indicating whether the specified date or day type is working.
|
void |
setEnteredByOccurrences(boolean value)
Sets a value indicating whether the range of recurrence is defined by entering a number of occurrences.
|
void |
setFromDate(Date value)
Sets the beginning of the exception time.
|
void |
setMonth(int value)
Sets the month for which an exception recurrence is scheduled.
|
void |
setMonthDay(int value)
Sets the day of a month on which an exception recurrence is scheduled.
|
void |
setMonthItem(int value)
Sets the month item for which an exception recurrence is scheduled.
|
void |
setMonthPosition(int value)
Sets the position of a month item within a month.
|
void |
setName(String value)
Sets the name of the exception.
|
void |
setOccurrences(int value)
Sets the number of occurrences for which the calendar exception is valid.
|
void |
setPeriod(int value)
Sets the period of recurrence for the exception.
|
void |
setToDate(Date value)
Sets the end of the exception time.
|
void |
setType(int value)
Sets the exception type.
|
void |
setWorkingTimes(WorkingTimeCollection value)
Sets the WorkingTimeCollection object.
|
public CalendarException()
Initializes a new instance of the CalendarException
class.
public final boolean checkException(Date dt)
Returns true if the specified instance of the Date
struct is the exception day
public final void delete()
Deletes the Exception instance from parent calendar CalendarExceptionCollection object.
public final boolean getDayWorking()
Gets a value indicating whether the specified date or day type is working.
Read/write boolean
.
public final void setDayWorking(boolean value)
Sets a value indicating whether the specified date or day type is working.
Read/write boolean
.
value
- a value indicating whether the specified date or day type is working.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.
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
.
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
.
value
- a value indicating whether the range of recurrence is defined by entering a number of
occurrences.public final Date getFromDate()
Gets the beginning of the exception time.
Read/write Date
.
public final void setFromDate(Date value)
Sets the beginning of the exception time.
Read/write Date
.
value
- the beginning of the exception time.public final int getMonth()
Gets the month for which an exception recurrence is scheduled.
Read/write Month
.
public final void setMonth(int value)
Sets the month for which an exception recurrence is scheduled.
Read/write Month
.
value
- the month for which an exception recurrence is scheduled.public final int getMonthDay()
Gets the day of a month on which an exception recurrence is scheduled.
Read/write int
.
public final void setMonthDay(int value)
Sets the day of a month on which an exception recurrence is scheduled.
Read/write int
.
value
- the day of a month on which an exception recurrence is scheduled.public final int getMonthItem()
Gets the month item for which an exception recurrence is scheduled.
Read/write MonthItemType
.
public final void setMonthItem(int value)
Sets the month item for which an exception recurrence is scheduled.
Read/write MonthItemType
.
value
- the month item for which an exception recurrence is scheduled.public final int getMonthPosition()
Gets the position of a month item within a month.
Read/write MonthPosition
.
public final void setMonthPosition(int value)
Sets the position of a month item within a month.
Read/write MonthPosition
.
value
- the position of a month item within a month.public final String getName()
Gets the name of the exception.
Read/write String
.
public final void setName(String value)
Sets the name of the exception.
Read/write String
.
value
- the name of the exception.public final int getOccurrences()
Gets the number of occurrences for which the calendar exception is valid.
Read/write int
.
public final void setOccurrences(int value)
Sets the number of occurrences for which the calendar exception is valid.
Read/write int
.
value
- the number of occurrences for which the calendar exception is valid.public final Calendar getParentCalendar()
public final int getPeriod()
Gets the period of recurrence for the exception.
Read/write int
.
public final void setPeriod(int value)
Sets the period of recurrence for the exception.
Read/write int
.
value
- the period of recurrence for the exception.public final Date getToDate()
Gets the end of the exception time.
Read/write Date
.
public final void setToDate(Date value)
Sets the end of the exception time.
Read/write Date
.
value
- the end of the exception time.public final int getType()
Gets the exception type.
Read/write CalendarExceptionType
.
public final void setType(int value)
Sets the exception type.
Read/write CalendarExceptionType
.
value
- the exception type.public final double getWorkingTime()
Returns the working time for a calendar exception.
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.
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.
value
- the WorkingTimeCollection object.