public abstract class AbstractHolidayParser extends Object implements HolidayParser
| Modifier and Type | Field and Description |
|---|---|
protected CalendarUtil |
calendarUtil
Calendar utility class.
|
protected XMLUtil |
xmlUtil
XML utility class.
|
| Constructor and Description |
|---|
AbstractHolidayParser() |
| Modifier and Type | Method and Description |
|---|---|
protected LocalDate |
getEasterSunday(int year,
de.jollyday.config.ChronologyType ct)
getEasterSunday.
|
protected <T extends de.jollyday.config.Holiday> |
isValid(T h,
int year)
Evaluates if the provided
Holiday instance is valid for the
provided year. |
protected LocalDate |
moveDate(de.jollyday.config.MoveableHoliday fm,
LocalDate fixed)
Moves a date if there are any moving conditions for this holiday and any
of them fit.
|
protected boolean |
shallBeMoved(LocalDate fixed,
de.jollyday.config.MovingCondition mc)
Determines if the provided date shall be substituted.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitparseprotected CalendarUtil calendarUtil
protected XMLUtil xmlUtil
protected <T extends de.jollyday.config.Holiday> boolean isValid(T h,
int year)
Holiday instance is valid for the
provided year.T - a Holiday subclassh - The holiday configuration entry to validateyear - The year to validate against.protected LocalDate moveDate(de.jollyday.config.MoveableHoliday fm, LocalDate fixed)
fm - a MoveableHoliday object.fixed - a LocalDate object.protected boolean shallBeMoved(LocalDate fixed, de.jollyday.config.MovingCondition mc)
fixed - a LocalDate object.mc - a MovingCondition object.Copyright © 18.01.2010–2015. All rights reserved.