org.jfin.date.holiday.financialcalendarimpl
Class InfoFileEntry
- java.lang.Object
-
- org.jfin.date.holiday.financialcalendarimpl.InfoFileEntry
-
public class InfoFileEntry extends java.lang.ObjectRepresents an entry in the financialcalendar.com info.csv file. An example info.csv file is included with the db jFin distribution. For information on licensing a full info.csv file, along with holiday calendars, visit http://www.financialcalendar.com/ financialcalendar.com is not associated with jFin
-
-
Constructor Summary
Constructors Constructor and Description InfoFileEntry()Default constructorInfoFileEntry(java.lang.String lineToParse)Construct an InfoFileEntry from a line in the .csv fileInfoFileEntry(java.lang.String code, java.lang.String center, java.lang.String country, Iso4217Currency currency, java.lang.String type, Iso3166Country isoCountry, java.lang.String define1, java.lang.String define2)Construct an InfoFileEntry
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.StringgetCenter()java.lang.StringgetCode()java.lang.StringgetCountry()java.lang.StringgetCountryMapping(java.lang.String country)Iso4217CurrencygetCurrency()voidgetCurrencyMapping()java.lang.StringgetDefine1()java.lang.StringgetDefine2()Iso3166CountrygetIsoCountry()java.lang.StringgetType()voidinitialiseCountryMapping()voidparse(java.lang.String line)Parses a comma seperated line from a .csv file into the InfoFileEntryvoidsetCenter(java.lang.String center)voidsetCode(java.lang.String code)voidsetCountry(java.lang.String country)voidsetCurrency(Iso4217Currency currency)voidsetDefine1(java.lang.String define1)voidsetDefine2(java.lang.String define2)voidsetIsoCountry(Iso3166Country isoCountry)voidsetType(java.lang.String type)java.lang.StringtoString()
-
-
-
Constructor Detail
-
InfoFileEntry
public InfoFileEntry()
Default constructor
-
InfoFileEntry
public InfoFileEntry(java.lang.String lineToParse)
Construct an InfoFileEntry from a line in the .csv file- Parameters:
lineToParse-
-
InfoFileEntry
public InfoFileEntry(java.lang.String code, java.lang.String center, java.lang.String country, Iso4217Currency currency, java.lang.String type, Iso3166Country isoCountry, java.lang.String define1, java.lang.String define2)Construct an InfoFileEntry- Parameters:
code-center-country-currency-type-isoCountry-define1-define2-
-
-
Method Detail
-
parse
public void parse(java.lang.String line)
Parses a comma seperated line from a .csv file into the InfoFileEntry- Parameters:
line-
-
getCenter
public java.lang.String getCenter()
- Returns:
- Returns the center.
-
setCenter
public void setCenter(java.lang.String center)
- Parameters:
center- The center to set.
-
getCode
public java.lang.String getCode()
- Returns:
- Returns the code.
-
setCode
public void setCode(java.lang.String code)
- Parameters:
code- The code to set.
-
getCountry
public java.lang.String getCountry()
- Returns:
- Returns the country.
-
setCountry
public void setCountry(java.lang.String country)
- Parameters:
country- The country to set.
-
getCurrency
public Iso4217Currency getCurrency()
- Returns:
- Returns the currency.
-
setCurrency
public void setCurrency(Iso4217Currency currency)
- Parameters:
currency- The currency to set.
-
getDefine1
public java.lang.String getDefine1()
- Returns:
- Returns the define1.
-
setDefine1
public void setDefine1(java.lang.String define1)
- Parameters:
define1- The define1 to set.
-
getDefine2
public java.lang.String getDefine2()
- Returns:
- Returns the define2.
-
setDefine2
public void setDefine2(java.lang.String define2)
- Parameters:
define2- The define2 to set.
-
getIsoCountry
public Iso3166Country getIsoCountry()
- Returns:
- Returns the isoCountry.
-
setIsoCountry
public void setIsoCountry(Iso3166Country isoCountry)
- Parameters:
isoCountry- The isoCountry to set.
-
getType
public java.lang.String getType()
- Returns:
- Returns the type.
-
setType
public void setType(java.lang.String type)
- Parameters:
type- The type to set.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
initialiseCountryMapping
public void initialiseCountryMapping()
-
getCountryMapping
public java.lang.String getCountryMapping(java.lang.String country)
-
getCurrencyMapping
public void getCurrencyMapping()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG