Module de.focus_shift.jollyday.core
Package de.focus_shift.jollyday.core.spi
Interface Configuration
-
public interface ConfigurationRepresents the holiday configuration, meta information like the hierarchy and description and the sub configuration for a specificHolidayCalendar.- The `holidays` contains the holiday configuration for every holiday.
- The `hierarchy` contains the ISO 3166-1 alpha-2 for countries or ISO 3166-2 code for subdivisions.
- The `description` contains further information.
- The `subConfiguration` contains the holiday configuration for subdivisions, cities, ... of the main configuration.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stringdescription()Contains further information like the name.Stringhierarchy()Contains the ISO 3166-1 alpha-2 for countries or ISO 3166-2 code for subdivisionsHolidaysholidays()Contains all holiday configuration of different types likeFixedorChristianHolidaye.g.Stream<Configuration>subConfigurations()Contains the holiday configuration for subdivisions, cities, ... of the main configuration.
-
-
-
Method Detail
-
hierarchy
String hierarchy()
Contains the ISO 3166-1 alpha-2 for countries or ISO 3166-2 code for subdivisions- Returns:
- the code of this configuration
-
description
String description()
Contains further information like the name.- Returns:
- the description of this configuration
-
holidays
Holidays holidays()
Contains all holiday configuration of different types likeFixedorChristianHolidaye.g.- Returns:
- all holiday configuration for this
HolidayCalendar
-
subConfigurations
Stream<Configuration> subConfigurations()
Contains the holiday configuration for subdivisions, cities, ... of the main configuration. The hierarchy is built on top of the iso standard. For germany e.g. there is a main configuration for Germany and 16 sub configurations for the subdivisions.- Returns:
- all configurations for the next hierarchy level like subdivisions or cities.
-
-