org.jfin.date.holiday.financialcalendarimpl
Class HolidayFileEntry
- java.lang.Object
-
- org.jfin.date.holiday.financialcalendarimpl.HolidayFileEntry
-
public class HolidayFileEntry extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description HolidayFileEntry()Default constructorHolidayFileEntry(java.lang.String lineToParse, InfoFile infoFile)Construct an HolidayFileEntry from a line in the .csv file and an info fileHolidayFileEntry(java.lang.String date, InfoFileEntry info, java.lang.String description)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.StringgetDate()java.text.DateFormatgetDateFormat()java.lang.StringgetDescription()InfoFileEntrygetInfo()java.lang.StringgetReference()static java.lang.StringgetReference(java.lang.String date, java.lang.String infoCode)voidparse(java.lang.String line, InfoFile infoFile)Parses a comma seperated line from a .csv file into the HolidayFileEntryvoidsetDate(java.lang.String date)voidsetDateFormat(java.text.DateFormat dateFormat)voidsetDescription(java.lang.String description)voidsetInfo(InfoFileEntry info)
-
-
-
Constructor Detail
-
HolidayFileEntry
public HolidayFileEntry()
Default constructor
-
HolidayFileEntry
public HolidayFileEntry(java.lang.String lineToParse, InfoFile infoFile)Construct an HolidayFileEntry from a line in the .csv file and an info file- Parameters:
lineToParse- The line to parseinfoFile- The location of the infofile
-
HolidayFileEntry
public HolidayFileEntry(java.lang.String date, InfoFileEntry info, java.lang.String description)- Parameters:
date- The date as a string in the same format as the tricol.csv fileinfo- The infoFileEntrydescription- The description
-
-
Method Detail
-
parse
public void parse(java.lang.String line, InfoFile infoFile)Parses a comma seperated line from a .csv file into the HolidayFileEntry- Parameters:
line- The line to parseinfoFile- the info file
-
getDate
public java.lang.String getDate()
- Returns:
- Returns the date.
-
setDate
public void setDate(java.lang.String date)
- Parameters:
date- The date to set.
-
getDescription
public java.lang.String getDescription()
- Returns:
- Returns the description.
-
setDescription
public void setDescription(java.lang.String description)
- Parameters:
description- The description to set.
-
getInfo
public InfoFileEntry getInfo()
- Returns:
- Returns the info.
-
setInfo
public void setInfo(InfoFileEntry info)
- Parameters:
info- The info to set.
-
getDateFormat
public java.text.DateFormat getDateFormat()
- Returns:
- Returns the dateFormat.
-
setDateFormat
public void setDateFormat(java.text.DateFormat dateFormat)
- Parameters:
dateFormat- The dateFormat to set.
-
getReference
public static java.lang.String getReference(java.lang.String date, java.lang.String infoCode)
-
getReference
public java.lang.String getReference()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG