Package com.opengamma.core.holiday.impl

Examples of com.opengamma.core.holiday.impl.SimpleHoliday


    private final SimpleHoliday _holiday;

    public MyHolidaySource(final Calendar calendar, final String country) {
      _calendar = calendar;
      _regionId = ExternalId.of(ExternalSchemes.ISO_COUNTRY_ALPHA2, country);
      _holiday = new SimpleHoliday();
      _uniqueId = UniqueId.of(UniqueId.EXTERNAL_SCHEME.getName(), _regionId.getValue());
      _holiday.setUniqueId(_uniqueId);
    }
View Full Code Here


   
    HolidaySearchResult holidaySearchResult = inMemoryHolidayMaster.search(new HolidaySearchRequest());
    List<ManageableHoliday> holidays = holidaySearchResult.getHolidays();
   
    for (ManageableHoliday manageableHoliday : holidays) {
      SimpleHoliday simpleHoliday = new SimpleHoliday();
      simpleHoliday.setCurrency(manageableHoliday.getCurrency());
      simpleHoliday.setExchangeExternalId(manageableHoliday.getExchangeExternalId());
      simpleHoliday.setHolidayDates(manageableHoliday.getHolidayDates());
      simpleHoliday.setRegionExternalId(manageableHoliday.getRegionExternalId());
      simpleHoliday.setType(manageableHoliday.getType());
      redisHolidaySource.addHoliday(simpleHoliday);
    }
    return redisHolidaySource;
  }
View Full Code Here

TOP

Related Classes of com.opengamma.core.holiday.impl.SimpleHoliday

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.