Class PeriodEvent

java.lang.Object
com.webmethods.sc.calendar.Event
com.webmethods.sc.calendar.PeriodEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Holiday

public class PeriodEvent extends Event
Base class for period events, such as having start and end datetimes
See Also:
  • Constructor Details

    • PeriodEvent

      public PeriodEvent(Date dateStart, Date dateEnd)
      Creates unnamed PeriodEvent for given start and end dates
      Parameters:
      dateStart -
      dateEnd -
    • PeriodEvent

      public PeriodEvent()
      Default constructor
    • PeriodEvent

      public PeriodEvent(String type, String name, Date dateStart, Date dateEnd)
      Creates named PeriodEvent of certain type for given start and end dates
      Parameters:
      type -
      name -
      dateStart -
      dateEnd -
  • Method Details

    • getEndDate

      public Date getEndDate()
      Returns end datetime for this PeriodEvent
    • setEndDate

      public void setEndDate(Date dateEnd)
      Sets end datetime for this PeriodEvent
    • getStartDate

      public Date getStartDate()
      Returns start datetime for this PeriodEvent
    • setStartDate

      public void setStartDate(Date dateStart)
      Sets start datetime for this PeriodEvent
      Parameters:
      dateStart -
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Event
    • includes

      public boolean includes(Date date)
      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

      public String toString()
      Overrides:
      toString in class Event