Interface TradeCsvWriterPlugin<T extends Trade>

    • Method Detail

      • extendedEnum

        static ExtendedEnum<TradeCsvWriterPlugin<?>> extendedEnum()
        Gets the extended enum helper.

        This helper allows instances of the parser to be looked up. It also provides the complete set of available instances.

        the extended enum helper
      • headers

        Set<String> headers​(List<T> trades)
        Returns the set of headers needed for this type of trade.

        The headers are ordered and all distinct.

        trades - the trades to output
        the set of additional headers
      • writeCsv

        void writeCsv​(CsvOutput.CsvRowOutputWithHeaders csv,
                      T trade)
        Writes the CSV for the specified trade.
        csv - the CSV to write to
        trade - the trade to output
      • getName

        String getName()
        Gets the name that uniquely identifies this parser.

        The name should typically be the name of the Product that can be parsed. For example, 'Fra', 'Swap' or 'FxSingle'.

        This name is used in serialization and an be parsed using of(String).

        Specified by:
        getName in interface Named
        the unique name
      • supportedTradeTypes

        Set<Class<?>> supportedTradeTypes()
        Provides the supported trade types for this plugin.

        The set typically contains the names of the Trade that can be written. For example, 'FraTrade', 'SwapTrade'.

        the set of supported trade types.