T
- The type of builder this is.public static class FXBaseBlotterItemMessage.Builder<T> extends Object implements BlotterMessageBuilder
Modifier and Type | Field and Description |
---|---|
protected String |
itemId |
protected com.caplin.datasource.messaging.record.GenericMessage |
record |
protected String |
username |
Modifier and Type | Method and Description |
---|---|
T |
account(String account)
Sets the account
|
void |
addField(String fieldName,
String value)
Sets the value on field with the given na,e
|
protected T |
addFieldAndReturnThis(String fieldName,
String value) |
FXBaseBlotterItemMessage |
build()
Builds the FXBaseBlotterItemMessage
|
T |
currencyPair(String currencyPair)
Sets the currency pair
|
T |
dealtCurrency(String dealtCurrency)
Sets the dealt currency
|
T |
executionDateTime(String date)
Sets the execution date time
|
T |
nearBuySell(BuySell buySell)
Sets the near BuySell
|
T |
orderID(String orderID)
Sets the order id
|
T |
submittedBy(String username)
Sets the submitted by username
|
T |
submittedFor(String username)
Sets the name of the submitted for username
|
T |
tradeDate(String date)
Sets the trade date
|
T |
tradeID(String tradeID)
Sets the trade id
|
T |
tradingType(FXTradingType type)
Sets the trading type
|
protected String username
protected String itemId
protected com.caplin.datasource.messaging.record.GenericMessage record
public void addField(String fieldName, String value)
fieldName
- The field namevalue
- The value of the fieldpublic T tradeID(String tradeID)
tradeID
- The trade idpublic T orderID(String orderID)
orderID
- The order idpublic T account(String account)
account
- The accountpublic T tradingType(FXTradingType type)
type
- The trading typepublic T currencyPair(String currencyPair)
currencyPair
- The currency pairpublic T dealtCurrency(String dealtCurrency)
dealtCurrency
- The dealt currencypublic T submittedBy(String username)
username
- The submitted by usernamepublic T submittedFor(String username)
username
- The submitted for usernamepublic T tradeDate(String date)
date
- The trade datepublic T executionDateTime(String date)
date
- The execution date timepublic T nearBuySell(BuySell buySell)
buySell
- the near BuySellpublic FXBaseBlotterItemMessage build()
build
in interface BlotterMessageBuilder
FXBaseBlotterItemMessage
Copyright © 2015 Caplin Systems.