|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.jaret.util.date.holidayenumerator.HolidayEnumeratorFactory
public class HolidayEnumeratorFactory
Factory for supplying a configured HolidayEnumerator. HolidayEnumerators are charcterized by a locale and an optional additional RegionID. The latter is used to differentiate regions in a country and should be used more finegrained than the Locale's variant.
This factory searches in the package de.jaret.util.date.holidayenumertor for classes named "HolidayEnumerator_"+ locale string represenation (i.e. "de_DE"). They should have a no argument constructor or a constructor taking the regionId as an argument.
Constructor Summary | |
---|---|
HolidayEnumeratorFactory()
|
Method Summary | |
---|---|
static List<Locale> |
getAvailableHolidayEnumeratorLocales()
Retrieve the list of Locales for that HolidayEnumerators can be found. |
static HolidayEnumerator |
getHolidayEnumeratorInstance(Locale locale,
String regionId)
Supply a configured HolidayEnumerator for a locale and a RegionID. |
static HolidayEnumerator |
getHolidayEnumeratorInstance(String languageAndCountry,
String regionId)
Supply holidayenumerator for a combinated String of language and country (e.g. de_DE) and an optional regionID. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HolidayEnumeratorFactory()
Method Detail |
---|
public static HolidayEnumerator getHolidayEnumeratorInstance(Locale locale, String regionId)
locale
- Locale for the HolidayEnumeratorregionId
- optional RegionID. (may be null
).
null
if no HolidayEnumerator is available for the
specified locale.public static HolidayEnumerator getHolidayEnumeratorInstance(String languageAndCountry, String regionId)
languageAndCountry
- languag_countryregionId
- optional region ID
null
if not available or arguments not validpublic static List<Locale> getAvailableHolidayEnumeratorLocales()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |