|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface HolidayEnumerator
Interface for a class enumerating holidays and other specially named days for a given Locale and additional RegionID. A special day is a day with a given name but without a meaning to the working world (such as the 24.12. in germany: it is named "Heiligabend" but it is not a holiday by law). Those can be used for additional information in calendar tools.
| Method Summary | |
|---|---|
String[] |
getAvailableRegionIds()
Retrieve the available region identifiers of the holiday enumerator. |
String |
getDayName(Date date)
Retrieve the name of a special day or holiday. |
Locale |
getLocale()
Retrieve the Locale of this HolidayEnumerator. |
List<NamedDate> |
getNamedDays(int year,
boolean includeSpecialDays)
Retrieve a list of named days for a given year. |
List<NamedDate> |
getNamedDays(int year,
int month,
boolean includeSpecialDays)
Retrieve a list of named days for a given year. |
String |
getRegionId()
Retrieve the RegionId of this HolidayEnumerator. |
boolean |
isHoliday(Date date)
Check whether a given day denotes a holiday. |
boolean |
isSpecialDay(Date date)
Check whether a given day denotes a special (named) day. |
| Method Detail |
|---|
boolean isSpecialDay(Date date)
date - The date to be checked
boolean isHoliday(Date date)
date - date to be checked
String getDayName(Date date)
date - date for which the name is to be retrieved
null if no name is found.
List<NamedDate> getNamedDays(int year,
boolean includeSpecialDays)
year - year to be questionedincludeSpecialDays - if true, special days are includes, otherwise the list will only contain holidays
List<NamedDate> getNamedDays(int year,
int month,
boolean includeSpecialDays)
year - year to be questionedmonth - month to be questionedincludeSpecialDays - if true, special days are includes, otherwise the list will only contain holidays
Locale getLocale()
String getRegionId()
String[] getAvailableRegionIds()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||