Annotation Interface WeeklyHoliday


Defines weekly holiday in annotated business calendar (see BusinessCalendar). Multiple WeeklyHoliday annotations may be placed on a single method. WeeklyHoliday annotation may be present on multiple methods of the same class, annotated method can have any name and return value.

Example:

 @BusinessCalendar(name = "calendarName", code = "uniqueCalendarCode")
 public interface AnnotatedBusinessCalendarExample {

     @WeeklyHoliday(DayOfWeek.SATURDAY)
     @WeeklyHoliday(value = DayOfWeek.SUNDAY, description = "Sunday is always a day for family")
     void weeklyHolidays();
 }
 
See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Points to day of week for given holiday.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Describes why given day is a holiday.
  • Element Details

    • value

      DayOfWeek value
      Points to day of week for given holiday.
    • description

      String description
      Describes why given day is a holiday.
      Default:
      ""