USVHoliday.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 USVHoliday implements org.drip.analytics.holset.LocationHoliday {
  36.     public USVHoliday()
  37.     {
  38.     }

  39.     public java.lang.String getHolidayLoc()
  40.     {
  41.         return "USV";
  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 ("03 Independence Day Observed-JUL-2009", "");

  48.         lh.addStandardWeekend();

  49.         return lh;
  50.     }
  51. }