KPWHoliday.java

  1. package org.drip.analytics.holset;

  2. /*
  3.  * -*- mode: java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
  4.  */

  5. /*
  6.  *    GENERATED on Fri Jan 11 19:54:07 EST 2013 ---- DO NOT DELETE
  7.  */

  8. /*!
  9.  * Copyright (C) 2016 Lakshmi Krishnamurthy
  10.  * Copyright (C) 2015 Lakshmi Krishnamurthy
  11.  * Copyright (C) 2014 Lakshmi Krishnamurthy
  12.  * Copyright (C) 2013 Lakshmi Krishnamurthy
  13.  * Copyright (C) 2012 Lakshmi Krishnamurthy
  14.  * Copyright (C) 2011 Lakshmi Krishnamurthy
  15.  *
  16.  * This file is part of CreditAnalytics, a free-software/open-source library for
  17.  *      fixed income analysts and developers - http://www.credit-trader.org
  18.  *
  19.  * CreditAnalytics is a free, full featured, fixed income credit analytics library, developed with a special focus
  20.  *      towards the needs of the bonds and credit products community.
  21.  *
  22.  *  Licensed under the Apache License, Version 2.0 (the "License");
  23.  *      you may not use this file except in compliance with the License.
  24.  *
  25.  *  You may obtain a copy of the License at
  26.  *      http://www.apache.org/licenses/LICENSE-2.0
  27.  *
  28.  *  Unless required by applicable law or agreed to in writing, software
  29.  *      distributed under the License is distributed on an "AS IS" BASIS,
  30.  *      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  31.  *  
  32.  *  See the License for the specific language governing permissions and
  33.  *      limitations under the License.
  34.  */

  35. public class KPWHoliday implements org.drip.analytics.holset.LocationHoliday {
  36.     public KPWHoliday()
  37.     {
  38.     }

  39.     public java.lang.String getHolidayLoc()
  40.     {
  41.         return "KPW";
  42.     }

  43.     public org.drip.analytics.eventday.Locale getHolidaySet()
  44.     {
  45.         org.drip.analytics.eventday.Locale lh = new
  46.             org.drip.analytics.eventday.Locale();

  47.         lh.addStaticHoliday ("01-JAN-1997", "New Years day");

  48.         lh.addStaticHoliday ("02-JAN-1997", "New Years Holiday");

  49.         lh.addStaticHoliday ("07-FEB-1997", "Lunar New Years Holiday");

  50.         lh.addStaticHoliday ("05-MAY-1997", "Childrens Day");

  51.         lh.addStaticHoliday ("14-MAY-1997", "Lord Buddhas Birthday");

  52.         lh.addStaticHoliday ("06-JUN-1997", "Memorial day");

  53.         lh.addStaticHoliday ("17-JUL-1997", "Constitution Day");

  54.         lh.addStaticHoliday ("15-AUG-1997", "Liberation Day");

  55.         lh.addStaticHoliday ("15-SEP-1997", "Korea Thanksgiving Holiday");

  56.         lh.addStaticHoliday ("16-SEP-1997", "Korea Thanksgiving Day");

  57.         lh.addStaticHoliday ("17-SEP-1997", "Korea Thanksgiving Holiday");

  58.         lh.addStaticHoliday ("03-OCT-1997", "National Foundation Day");

  59.         lh.addStaticHoliday ("25-DEC-1997", "Christmas Day");

  60.         lh.addStandardWeekend();

  61.         return lh;
  62.     }
  63. }