Package com.caplin.motif.datasource
Interface SubjectInfo
- All Known Subinterfaces:
OrderDetailsInfo
- All Known Implementing Classes:
AllocationViewEvent
,ConfigSubjectInfo
,EntitySettlementInstructionsMandatorySubjectInfo
,LiquiditySubjectInfo
,MaturityDatesSubjectInfo
,MaturityTenorDatesSubjectInfo
,MMCurrencyConfigSubjectInfo
,NoticeRateSubjectInfo
,OrderDetailsInfoImpl
,OrderSubjectInfo
,PrecisionSubjectInfo
,RateSubjectInfo
,RateSubjectInfo
,SalesSettlementInstructionsMandatorySubjectInfo
,SalesTOBOConfigSubjectInfo
,SettlementDateSubjectInfo
,SettlementInstructionsMandatorySubjectInfo
,StartDatesSubjectInfo
,StartTenorDatesSubjectInfo
,SystemInfoSubjectInfo
,TenorDateSubjectInfo
,TOBOChangeEntitySubjectInfo
,ToboSettlementDateSubjectInfo
,ToboTenorDateSubjectInfo
,TradeSubjectInfo
,UnsettledSubjectInfo
,UserDetailsSubjectInfo
,UserMaturityDatesSubjectInfo
,UserMaturityTenorDatesSubjectInfo
,UserSettlementDateSubjectInfo
,UserStartDatesSubjectInfo
,UserStartTenorDatesSubjectInfo
,UserTenorDateSubjectInfo
public interface SubjectInfo
Provides an object representation of a subject request. This also provides protection in the case where the subject is changed as the implementation can be added to in a single place.
Parsing of a subject into a SubjectInfo instance should be achieve by
using a SubjectParser
.
Example:
Consider the subject:
/FX/GBPUSD/SPOT/GBP
The following class would be used to represent the subject:
public class RateSubjectInfo implements SubjectInfo { public RateSubjectInfo(String subject, String ccyPair, String tenor, String dealtCcy) { // assign args. ... } @Override public String getSubject() { return subject; } public String getCurrencyPair() { return ccyPair; } public String getTenor() { return tenor; } public String getDealtCurrency() { return dealtCurrency; } }
-
Method Summary
Modifier and TypeMethodDescriptionReturns the original subject that was parsed to create this SubjectInfo
-
Method Details
-
getSubject
String getSubject()Returns the original subject that was parsed to create this SubjectInfo- Returns:
- The original subject.
-