org.jfin.date.holiday.financialcalendarimpl
Class HolidayCalendarFactoryFinancialCalendarImpl
- java.lang.Object
-
- org.jfin.date.holiday.HolidayCalendarFactory
-
- org.jfin.date.holiday.financialcalendarimpl.HolidayCalendarFactoryFinancialCalendarImpl
-
public class HolidayCalendarFactoryFinancialCalendarImpl extends HolidayCalendarFactory
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringholidayCalendarHolidayFileParameterstatic java.lang.StringholidayCalendarInfoFileParameter-
Fields inherited from class org.jfin.date.holiday.HolidayCalendarFactory
defaultHolidayCalendarFactoryClassName, defaultHolidayCalendarFactoryClassNameParameter
-
-
Constructor Summary
Constructors Constructor and Description HolidayCalendarFactoryFinancialCalendarImpl()Uses the system properties: jfin.FinancialCalendar.HolidayFilePath and fin.FinancialCalendar.InfoFilePath To load in the holiday list and info file from the provided paths.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.String[]getAvailableLocales()HolidayCalendargetHolidayCalendar(java.lang.String locale)Get the HolidayCalendar that represents the locale.<T extends Period>
HolidayCalendar<T>getHolidayCalendar(java.lang.String locale, java.lang.Class<T> c)Get the HolidayCalendar that represents the locales provided as an array of Strings.HolidayFilegetHolidayFile()InfoFilegetInfoFile()voidsetHolidayFile(HolidayFile holidayFile)voidsetInfoFile(InfoFile infoFile)-
Methods inherited from class org.jfin.date.holiday.HolidayCalendarFactory
getHolidayCalendar, getHolidayCalendar, newInstance, newInstance
-
-
-
-
Field Detail
-
holidayCalendarHolidayFileParameter
public static java.lang.String holidayCalendarHolidayFileParameter
-
holidayCalendarInfoFileParameter
public static java.lang.String holidayCalendarInfoFileParameter
-
-
Constructor Detail
-
HolidayCalendarFactoryFinancialCalendarImpl
public HolidayCalendarFactoryFinancialCalendarImpl()
Uses the system properties: jfin.FinancialCalendar.HolidayFilePath and fin.FinancialCalendar.InfoFilePath To load in the holiday list and info file from the provided paths.
-
-
Method Detail
-
getHolidayCalendar
public HolidayCalendar getHolidayCalendar(java.lang.String locale)
Description copied from class:HolidayCalendarFactoryGet the HolidayCalendar that represents the locale.
- Specified by:
getHolidayCalendarin classHolidayCalendarFactory- Returns:
- The HolidayCalendar for the given Locale
-
getHolidayCalendar
public <T extends Period> HolidayCalendar<T> getHolidayCalendar(java.lang.String locale, java.lang.Class<T> c)
Description copied from class:HolidayCalendarFactoryGet the HolidayCalendar that represents the locales provided as an array of Strings.
- Specified by:
getHolidayCalendarin classHolidayCalendarFactory- Returns:
- The holiday calendar
-
getHolidayFile
public HolidayFile getHolidayFile()
- Returns:
- Returns the holidayFile.
-
setHolidayFile
public void setHolidayFile(HolidayFile holidayFile)
- Parameters:
holidayFile- The holidayFile to set.
-
getInfoFile
public InfoFile getInfoFile()
- Returns:
- Returns the infoFile.
-
setInfoFile
public void setInfoFile(InfoFile infoFile)
- Parameters:
infoFile- The infoFile to set.
-
getAvailableLocales
public java.lang.String[] getAvailableLocales()
- Specified by:
getAvailableLocalesin classHolidayCalendarFactory
-
-
DataMelt 3.0 © DataMelt by jWork.ORG