Class SchedulerCalendar

java.lang.Object
com.swiftmq.impl.scheduler.standard.SchedulerCalendar
All Implemented Interfaces:
Serializable

public class SchedulerCalendar extends Object implements Serializable
See Also:
  • Field Details

    • LAST_DAY_OF_MONTH

      public static int LAST_DAY_OF_MONTH
  • Constructor Details

    • SchedulerCalendar

      public SchedulerCalendar(String name, boolean exclude, String baseCalendarName, boolean enableWeekDays, boolean enableMonthDays, boolean enableMonthDayLast, boolean enableAnnualDays, boolean enableDateRanges)
  • Method Details

    • getName

      public String getName()
    • setExclude

      public void setExclude(boolean exclude)
    • setBaseCalendarName

      public void setBaseCalendarName(String baseCalendarName)
    • setEnableWeekDays

      public void setEnableWeekDays(boolean enableWeekDays)
    • setEnableMonthDays

      public void setEnableMonthDays(boolean enableMonthDays)
    • setEnableMonthDayLast

      public void setEnableMonthDayLast(boolean enableMonthDayLast)
    • setEnableAnnualDays

      public void setEnableAnnualDays(boolean enableAnnualDays)
    • setEnableDateRanges

      public void setEnableDateRanges(boolean enableDateRanges)
    • setWeekDay

      public void setWeekDay(int day, boolean b)
    • setMonthDay

      public void setMonthDay(int day, boolean b)
    • addAnnualDay

      public void addAnnualDay(String name, int day, String month)
    • addAnnualDay

      public void addAnnualDay(String name, int day, int month)
    • removeAnnualDay

      public void removeAnnualDay(String name)
    • addDateRange

      public void addDateRange(String name, String from, String to)
    • removeDateRange

      public void removeDateRange(String name)
    • isValid

      public boolean isValid(Date time, Map calendars)
    • hasCalendarRef

      public boolean hasCalendarRef(String calendarName, Map calendars)
    • createCopy

      public SchedulerCalendar createCopy() throws Exception
      Throws:
      Exception
    • toString

      public String toString()
      Overrides:
      toString in class Object