de.jaret.util.date.holidayenumerator
Class HolidayEnumerator_fr_FR

java.lang.Object
  extended by de.jaret.util.date.holidayenumerator.HolidayEnumeratorBase
      extended by de.jaret.util.date.holidayenumerator.HolidayEnumerator_fr_FR
All Implemented Interfaces:
HolidayEnumerator

public class HolidayEnumerator_fr_FR
extends HolidayEnumeratorBase

HolidayEnumerator for France. (Enumerator pour les jours feriÔøΩ en france) Information from http://fr.wikipedia.org/wiki/Jour_f%C3%A9ri%C3%A9 No warranty!

Version:
$Id: HolidayEnumerator_fr_FR.java 293 2007-03-11 17:50:57Z olk $
Author:
Peter Kliem

Nested Class Summary
 
Nested classes/interfaces inherited from class de.jaret.util.date.holidayenumerator.HolidayEnumeratorBase
HolidayEnumeratorBase.EasyDate, HolidayEnumeratorBase.NamedDateImpl
 
Field Summary
static String REGION_ALSACE
          Region alsace, equivivalent to modelle.
static String REGION_CENTRAL
          Region central france; default.
static String REGION_MOSELLE
          Region moselle, equivalent to alsace.
 
Fields inherited from class de.jaret.util.date.holidayenumerator.HolidayEnumeratorBase
_locale, _regionId, _yearMap, CALENDAR
 
Constructor Summary
HolidayEnumerator_fr_FR(String regionId)
          This HolidayEnumerator is always bound to the locale fr_FR.
 
Method Summary
protected  void fillMap(int year)
          Calculate the holidays for a given year.
 String[] getAvailableRegionIds()
          Retrieve the available region identifiers of the holiday enumerator.
 
Methods inherited from class de.jaret.util.date.holidayenumerator.HolidayEnumeratorBase
addNamedDate, addNamedDate, addNamedDate, calcEaster, daysInMonth, equals, fridayOrMonday, getDate, getDayName, getEasyDate, getLocale, getNamedDays, getNamedDays, getRegionId, getWeekday, hashCode, init, isHoliday, isSpecialDay, lastWeekdayInMonth, nThWeekdayInMonth, setLocale, setRegionId, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

REGION_CENTRAL

public static final String REGION_CENTRAL
Region central france; default.

See Also:
Constant Field Values

REGION_ALSACE

public static final String REGION_ALSACE
Region alsace, equivivalent to modelle.

See Also:
Constant Field Values

REGION_MOSELLE

public static final String REGION_MOSELLE
Region moselle, equivalent to alsace.

See Also:
Constant Field Values
Constructor Detail

HolidayEnumerator_fr_FR

public HolidayEnumerator_fr_FR(String regionId)
This HolidayEnumerator is always bound to the locale fr_FR.

Parameters:
regionId - additional regionId defined as constants or null for default.
Method Detail

getAvailableRegionIds

public String[] getAvailableRegionIds()
Retrieve the available region identifiers of the holiday enumerator. Default implementation returns en empty array.

Specified by:
getAvailableRegionIds in interface HolidayEnumerator
Overrides:
getAvailableRegionIds in class HolidayEnumeratorBase
Returns:
the availbale ids or an empty array for no regions

fillMap

protected void fillMap(int year)
Calculate the holidays for a given year. This method has to be implemented by concrete implementations of HolidayEnumerators.

Specified by:
fillMap in class HolidayEnumeratorBase
Parameters:
year - year to calculate the holidays for


Copyright © 2013. All Rights Reserved.