Package com.opengamma.strata.loader.csv
Interface TradeCsvInfoSupplier
-
public interface TradeCsvInfoSupplierResolves additional information when writing trade CSV files.This allows additional CSV columns to be written.
-
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description default List<String>headers(Trade trade)Returns the list of additional headers this supplier provides.static TradeCsvInfoSupplierstandard()Obtains an instance that uses the standard set of reference data.default Map<String,String>values(List<String> headers, Trade trade)Gets the values associated with the headers.
-
-
-
Method Detail
-
standard
static TradeCsvInfoSupplier standard()
Obtains an instance that uses the standard set of reference data.- Returns:
- the loader
-
headers
default List<String> headers(Trade trade)
Returns the list of additional headers this supplier provides.- Parameters:
trade- the trade to output- Returns:
- the list of additional headers
-
values
default Map<String,String> values(List<String> headers, Trade trade)
Gets the values associated with the headers.This must return a map where the keys are headers that were returned from
headers().This will be invoked once for each
Tradeand will normally examineTradeInfo.- Parameters:
headers- the complete set of headerstrade- the trade to output- Returns:
- the map of values by header, not null
-
-