Class SchedulerCalendar

  • All Implemented Interfaces:
    java.io.Serializable

    public class SchedulerCalendar
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Field Detail

      • LAST_DAY_OF_MONTH

        public static int LAST_DAY_OF_MONTH
    • Constructor Detail

      • SchedulerCalendar

        public SchedulerCalendar​(java.lang.String name,
                                 boolean exclude,
                                 java.lang.String baseCalendarName,
                                 boolean enableWeekDays,
                                 boolean enableMonthDays,
                                 boolean enableMonthDayLast,
                                 boolean enableAnnualDays,
                                 boolean enableDateRanges)
    • Method Detail

      • getName

        public java.lang.String getName()
      • setExclude

        public void setExclude​(boolean exclude)
      • setBaseCalendarName

        public void setBaseCalendarName​(java.lang.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​(java.lang.String name,
                                 int day,
                                 java.lang.String month)
      • addAnnualDay

        public void addAnnualDay​(java.lang.String name,
                                 int day,
                                 int month)
      • removeAnnualDay

        public void removeAnnualDay​(java.lang.String name)
      • addDateRange

        public void addDateRange​(java.lang.String name,
                                 java.lang.String from,
                                 java.lang.String to)
      • removeDateRange

        public void removeDateRange​(java.lang.String name)
      • isValid

        public boolean isValid​(java.util.Date time,
                               java.util.Map calendars)
      • hasCalendarRef

        public boolean hasCalendarRef​(java.lang.String calendarName,
                                      java.util.Map calendars)
      • createCopy

        public SchedulerCalendar createCopy()
                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object