@FunctionalInterface public interface FpmlTradeInfoParserPlugin
|Modifier and Type||Method and Description|
Parses trade information from the FpML document.
Returns the standard parser plugin that parses the trade date and the first identifier of "our" party.
static FpmlTradeInfoParserPlugin standard()
TradeInfoBuilder parseTrade(FpmlDocument document, LocalDate tradeDate, ListMultimap<String,StandardId> allTradeIds)
This parses any trade info that is desired from the specified FpML document.
Details of the whole document and parser helper methods are provided.
Typically such parsing will require accessing the
from the root FpML element in the document.
Since most implementations will need the trade date and a trade identifier, these are pre-parsed before the method is invoked. The parties associated with the party href id can be obtained from the document.
A new instance of the builder must be returned each time the method is invoked.
The builder is returned to allow the counterparty to be added by the
FpmlParserPlugin implementation based on the trade direction.
tradeDate- the trade date from the document
allTradeIds- the collection of trade identifiers in the document, keyed by party href id
document- the document-wide information and parser helper
RuntimeException- if unable to parse
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.