Interface IWorkingDay


public interface IWorkingDay
Defines either regular days of the week or exception days in the calendar.
Author:
POLARION SOFTWARE
  • Field Details

  • Method Details

    • getDay

      int getDay()
      The type of working day:
      • 1-7 for Sunday, Monday, ...
      • 0 for exception; in this case range must be filled
      Returns:
      the int indicating the type of this working day
    • setDay

      void setDay(int day)
    • isWorking

      boolean isWorking()
      Indicates whether the specified date or date type is a working day.
    • getName

      @Nullable String getName()
    • setName

      void setName(@Nullable String name)
    • getDayType

      int getDayType()
      Returns type of event in this day. Possible values are defined as constants in IWorkingDay.
      Returns:
      the int indicating the type of event in this day
    • setDayType

      void setDayType(int dayType)
    • getWorkingTimes

      @Nullable IWorkingTime[] getWorkingTimes()
      For working day returns working times that define the time worked.
    • setWorkingTimes

      void setWorkingTimes(@Nullable IWorkingTime[] times)
    • getFromDate

      long getFromDate()
      Returns:
      range start
    • setFromDate

      void setFromDate(long date)
    • getToDate

      long getToDate()
      Returns:
      range end
    • setToDate

      void setToDate(long date)
    • matchTime

      boolean matchTime(long time)
      Parameters:
      time -
      Returns:
      true if time matches this working day
    • createElement

      @NotNull Element createElement(@NotNull Element parent)