All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.jollyday.config.Holidays Maven / Gradle / Ivy

Go to download

This API determines the holidays for a given year, country/name and eventually state/region. The holiday data is stored in XML files (one for each country) and will be read from the classpath. You can provide your own holiday calendar XML file or use any of the provided ones. Currently there are 63 countries supported like the following: United States, most european countries, Russia, India, Australia. Besides those there will be more special calendars like currently existing NYSE calendar (New York Stock Exchange).

The newest version!
//
// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.1 generiert 
// Siehe https://javaee.github.io/jaxb-v2/ 
// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. 
// Generiert: 2019.12.18 um 09:41:15 PM CET 
//


package de.jollyday.config;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;


/**
 * 

Java-Klasse für Holidays complex type. * *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. * *

 * <complexType name="Holidays">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="Fixed" type="{http://www.example.org/Holiday}Fixed" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="RelativeToFixed" type="{http://www.example.org/Holiday}RelativeToFixed" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="RelativeToWeekdayInMonth" type="{http://www.example.org/Holiday}RelativeToWeekdayInMonth" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="FixedWeekday" type="{http://www.example.org/Holiday}FixedWeekdayInMonth" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="ChristianHoliday" type="{http://www.example.org/Holiday}ChristianHoliday" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="IslamicHoliday" type="{http://www.example.org/Holiday}IslamicHoliday" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="FixedWeekdayBetweenFixed" type="{http://www.example.org/Holiday}FixedWeekdayBetweenFixed" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="FixedWeekdayRelativeToFixed" type="{http://www.example.org/Holiday}FixedWeekdayRelativeToFixed" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="HinduHoliday" type="{http://www.example.org/Holiday}HinduHoliday" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="HebrewHoliday" type="{http://www.example.org/Holiday}HebrewHoliday" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="EthiopianOrthodoxHoliday" type="{http://www.example.org/Holiday}EthiopianOrthodoxHoliday" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="RelativeToEasterSunday" type="{http://www.example.org/Holiday}RelativeToEasterSunday" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Holidays", propOrder = { "fixed", "relativeToFixed", "relativeToWeekdayInMonth", "fixedWeekday", "christianHoliday", "islamicHoliday", "fixedWeekdayBetweenFixed", "fixedWeekdayRelativeToFixed", "hinduHoliday", "hebrewHoliday", "ethiopianOrthodoxHoliday", "relativeToEasterSunday" }) public class Holidays { @XmlElement(name = "Fixed") protected List fixed; @XmlElement(name = "RelativeToFixed") protected List relativeToFixed; @XmlElement(name = "RelativeToWeekdayInMonth") protected List relativeToWeekdayInMonth; @XmlElement(name = "FixedWeekday") protected List fixedWeekday; @XmlElement(name = "ChristianHoliday") protected List christianHoliday; @XmlElement(name = "IslamicHoliday") protected List islamicHoliday; @XmlElement(name = "FixedWeekdayBetweenFixed") protected List fixedWeekdayBetweenFixed; @XmlElement(name = "FixedWeekdayRelativeToFixed") protected List fixedWeekdayRelativeToFixed; @XmlElement(name = "HinduHoliday") protected List hinduHoliday; @XmlElement(name = "HebrewHoliday") protected List hebrewHoliday; @XmlElement(name = "EthiopianOrthodoxHoliday") protected List ethiopianOrthodoxHoliday; @XmlElement(name = "RelativeToEasterSunday") protected List relativeToEasterSunday; /** * Gets the value of the fixed property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the fixed property. * *

* For example, to add a new item, do as follows: *

     *    getFixed().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Fixed } * * */ public List getFixed() { if (fixed == null) { fixed = new ArrayList(); } return this.fixed; } /** * Gets the value of the relativeToFixed property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the relativeToFixed property. * *

* For example, to add a new item, do as follows: *

     *    getRelativeToFixed().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link RelativeToFixed } * * */ public List getRelativeToFixed() { if (relativeToFixed == null) { relativeToFixed = new ArrayList(); } return this.relativeToFixed; } /** * Gets the value of the relativeToWeekdayInMonth property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the relativeToWeekdayInMonth property. * *

* For example, to add a new item, do as follows: *

     *    getRelativeToWeekdayInMonth().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link RelativeToWeekdayInMonth } * * */ public List getRelativeToWeekdayInMonth() { if (relativeToWeekdayInMonth == null) { relativeToWeekdayInMonth = new ArrayList(); } return this.relativeToWeekdayInMonth; } /** * Gets the value of the fixedWeekday property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the fixedWeekday property. * *

* For example, to add a new item, do as follows: *

     *    getFixedWeekday().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link FixedWeekdayInMonth } * * */ public List getFixedWeekday() { if (fixedWeekday == null) { fixedWeekday = new ArrayList(); } return this.fixedWeekday; } /** * Gets the value of the christianHoliday property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the christianHoliday property. * *

* For example, to add a new item, do as follows: *

     *    getChristianHoliday().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link ChristianHoliday } * * */ public List getChristianHoliday() { if (christianHoliday == null) { christianHoliday = new ArrayList(); } return this.christianHoliday; } /** * Gets the value of the islamicHoliday property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the islamicHoliday property. * *

* For example, to add a new item, do as follows: *

     *    getIslamicHoliday().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link IslamicHoliday } * * */ public List getIslamicHoliday() { if (islamicHoliday == null) { islamicHoliday = new ArrayList(); } return this.islamicHoliday; } /** * Gets the value of the fixedWeekdayBetweenFixed property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the fixedWeekdayBetweenFixed property. * *

* For example, to add a new item, do as follows: *

     *    getFixedWeekdayBetweenFixed().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link FixedWeekdayBetweenFixed } * * */ public List getFixedWeekdayBetweenFixed() { if (fixedWeekdayBetweenFixed == null) { fixedWeekdayBetweenFixed = new ArrayList(); } return this.fixedWeekdayBetweenFixed; } /** * Gets the value of the fixedWeekdayRelativeToFixed property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the fixedWeekdayRelativeToFixed property. * *

* For example, to add a new item, do as follows: *

     *    getFixedWeekdayRelativeToFixed().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link FixedWeekdayRelativeToFixed } * * */ public List getFixedWeekdayRelativeToFixed() { if (fixedWeekdayRelativeToFixed == null) { fixedWeekdayRelativeToFixed = new ArrayList(); } return this.fixedWeekdayRelativeToFixed; } /** * Gets the value of the hinduHoliday property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the hinduHoliday property. * *

* For example, to add a new item, do as follows: *

     *    getHinduHoliday().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link HinduHoliday } * * */ public List getHinduHoliday() { if (hinduHoliday == null) { hinduHoliday = new ArrayList(); } return this.hinduHoliday; } /** * Gets the value of the hebrewHoliday property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the hebrewHoliday property. * *

* For example, to add a new item, do as follows: *

     *    getHebrewHoliday().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link HebrewHoliday } * * */ public List getHebrewHoliday() { if (hebrewHoliday == null) { hebrewHoliday = new ArrayList(); } return this.hebrewHoliday; } /** * Gets the value of the ethiopianOrthodoxHoliday property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the ethiopianOrthodoxHoliday property. * *

* For example, to add a new item, do as follows: *

     *    getEthiopianOrthodoxHoliday().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link EthiopianOrthodoxHoliday } * * */ public List getEthiopianOrthodoxHoliday() { if (ethiopianOrthodoxHoliday == null) { ethiopianOrthodoxHoliday = new ArrayList(); } return this.ethiopianOrthodoxHoliday; } /** * Gets the value of the relativeToEasterSunday property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the relativeToEasterSunday property. * *

* For example, to add a new item, do as follows: *

     *    getRelativeToEasterSunday().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link RelativeToEasterSunday } * * */ public List getRelativeToEasterSunday() { if (relativeToEasterSunday == null) { relativeToEasterSunday = new ArrayList(); } return this.relativeToEasterSunday; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy