Package com.caplin.motif.mm.calendar
Class MaturityDatesSubjectInfo
java.lang.Object
com.caplin.motif.datasource.SubjectInfoWithParams
com.caplin.motif.mm.calendar.MMSubjectInfo
com.caplin.motif.mm.calendar.MaturityDatesSubjectInfo
- All Implemented Interfaces:
SubjectInfo
- Direct Known Subclasses:
UserMaturityDatesSubjectInfo
Class representation of the fields parsed from a Maturity Dates Subject.
-
Field Summary
Fields inherited from class com.caplin.motif.datasource.SubjectInfoWithParams
parameters -
Constructor Summary
ConstructorsConstructorDescriptionMaturityDatesSubjectInfo(String subject, String startDate, String currency, String year, String month) Creates a MaturityDatesSubjectInfo with the given parameters.MaturityDatesSubjectInfo(String subject, String startDate, String currency, String year, String month, String parameters) Creates a MaturityDatesSubjectInfo with the given parameters. -
Method Summary
Modifier and TypeMethodDescriptionReturns the currency parsed to create this MaturityDatesSubjectInfo.getMonth()Returns the month parsed to create this MaturityDatesSubjectInfo.Returns the start date parsed to create this MaturityDatesSubjectInfo.Returns the original subject that was parsed to create this SubjectInfogetYear()Returns the year parsed to create this MaturityDatesSubjectInfo.Methods inherited from class com.caplin.motif.mm.calendar.MMSubjectInfo
getTradingTypeMethods inherited from class com.caplin.motif.datasource.SubjectInfoWithParams
getParameters, param
-
Constructor Details
-
MaturityDatesSubjectInfo
public MaturityDatesSubjectInfo(String subject, String startDate, String currency, String year, String month) Creates a MaturityDatesSubjectInfo with the given parameters.- Parameters:
subject- the subjectstartDate- the start datecurrency- the currencyyear- the yearmonth- the month
-
MaturityDatesSubjectInfo
public MaturityDatesSubjectInfo(String subject, String startDate, String currency, String year, String month, String parameters) Creates a MaturityDatesSubjectInfo with the given parameters.- Parameters:
subject- the subjectstartDate- the start datecurrency- the currencyyear- the yearmonth- the monthparameters- Optional parameters for retrieving maturity dates
-
-
Method Details
-
getSubject
Description copied from interface:SubjectInfoReturns the original subject that was parsed to create this SubjectInfo- Returns:
- The original subject.
-
getStartDate
Returns the start date parsed to create this MaturityDatesSubjectInfo.- Returns:
- the startDate
-
getCurrency
Returns the currency parsed to create this MaturityDatesSubjectInfo.- Returns:
- the currency
-
getYear
Returns the year parsed to create this MaturityDatesSubjectInfo.- Returns:
- the year
-
getMonth
Returns the month parsed to create this MaturityDatesSubjectInfo.- Returns:
- the month
-