holidays.Holidays_lme.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jollyday Show documentation
Show all versions of jollyday Show documentation
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).
<?xml version="1.0" encoding="UTF-8"?> <tns:Configuration hierarchy="lme" description="London metal exchange" xmlns:tns="http://www.example.org/Holiday" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.example.org/Holiday /Holiday.xsd"> <tns:Holidays> <tns:Fixed month="JANUARY" day="1" descriptionPropertiesKey="NEW_YEARS_DAY"> </tns:Fixed> <tns:Fixed month="AUGUST" day="28" descriptionPropertiesKey="BANK_HOLIDAY"> </tns:Fixed> <tns:Fixed month="DECEMBER" day="26" descriptionPropertiesKey="BOXING_DAY"> <tns:MovingCondition substitute="SATURDAY" with="NEXT" weekday="MONDAY"/> <tns:MovingCondition substitute="SUNDAY" with="NEXT" weekday="TUESDAY"/> <tns:MovingCondition substitute="MONDAY" with="NEXT" weekday="TUESDAY"/> </tns:Fixed> <tns:Fixed month="DECEMBER" day="31" descriptionPropertiesKey="NEW_YEARS_EVE"> </tns:Fixed> <tns:Fixed month="DECEMBER" day="24" descriptionPropertiesKey="CHRISTMAS_EVE"> </tns:Fixed> <tns:Fixed month="DECEMBER" day="25" descriptionPropertiesKey="CHRISTMAS"> <tns:MovingCondition substitute="SATURDAY" with="NEXT" weekday="MONDAY"/> <tns:MovingCondition substitute="SUNDAY" with="NEXT" weekday="MONDAY"/> </tns:Fixed> <tns:FixedWeekday which="FIRST" weekday="MONDAY" month="MAY" descriptionPropertiesKey="BANK_HOLIDAY"/> <tns:FixedWeekday which="LAST" weekday="MONDAY" month="MAY" descriptionPropertiesKey="BANK_HOLIDAY"/> <tns:ChristianHoliday type="EASTER"/> <tns:ChristianHoliday type="GOOD_FRIDAY"/> </tns:Holidays> </tns:Configuration>