Package com.webmethods.sc.calendar
Class PeriodEvent
java.lang.Object
com.webmethods.sc.calendar.Event
com.webmethods.sc.calendar.PeriodEvent
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Holiday
Base class for period events, such as having start and end datetimes
- See Also:
-
Field Summary
Fields inherited from class com.webmethods.sc.calendar.Event
EVENT_TYPE_BUSY, EVENT_TYPE_BUSY_TENTATIVE, EVENT_TYPE_HOLIDAY, EVENT_TYPE_OUT_OF_THE_OFFICE, EVENT_TYPE_TIMEOFF, EVENT_TYPE_WORKDAY
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorPeriodEvent
(String type, String name, Date dateStart, Date dateEnd) Creates named PeriodEvent of certain type for given start and end datesPeriodEvent
(Date dateStart, Date dateEnd) Creates unnamed PeriodEvent for given start and end dates -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns end datetime for this PeriodEventReturns start datetime for this PeriodEventboolean
Checks if some date is in-between the start and end of this Period Event If the date is equal to either start or end then it is considered insidevoid
setEndDate
(Date dateEnd) Sets end datetime for this PeriodEventvoid
setStartDate
(Date dateStart) Sets start datetime for this PeriodEventtoString()
-
Constructor Details
-
PeriodEvent
Creates unnamed PeriodEvent for given start and end dates- Parameters:
dateStart
-dateEnd
-
-
PeriodEvent
public PeriodEvent()Default constructor -
PeriodEvent
Creates named PeriodEvent of certain type for given start and end dates- Parameters:
type
-name
-dateStart
-dateEnd
-
-
-
Method Details
-
getEndDate
Returns end datetime for this PeriodEvent -
setEndDate
Sets end datetime for this PeriodEvent -
getStartDate
Returns start datetime for this PeriodEvent -
setStartDate
Sets start datetime for this PeriodEvent- Parameters:
dateStart
-
-
equals
-
includes
Checks if some date is in-between the start and end of this Period Event If the date is equal to either start or end then it is considered inside- Parameters:
date
-- Returns:
-
toString
-