Constructor and Description |
---|
FIPXMLParser()
Construct the parser with default parameters.
|
FIPXMLParser(boolean agentIsBuyer,
String discountCurveName)
Construct the parser.
|
Modifier and Type | Method and Description |
---|---|
ProductDescriptor |
getProductDescriptor(File file)
Parse a product descriptor from a file.
|
InterestRateSwapProductDescriptor |
getSwapProductDescriptor(File file)
Parse a product descriptor from a file containing a swap trade.
|
public FIPXMLParser()
public FIPXMLParser(boolean agentIsBuyer, String discountCurveName)
agentIsBuyer
- Boolean indicating whether valuation is done from the buyers perspective.discountCurveName
- Name of the discount curve to be assigned to the descriptor. If set to null or left blank the parser will try to determine this from the file.public ProductDescriptor getProductDescriptor(File file) throws SAXException, IOException, ParserConfigurationException
XMLParser
getProductDescriptor
in interface XMLParser
file
- File containing a trade.SAXException
- Thrown by the xml parser.IOException
- Thrown if the file in not found or another IO error occured.ParserConfigurationException
- Thrown by the xml parser.public InterestRateSwapProductDescriptor getSwapProductDescriptor(File file) throws SAXException, IOException, ParserConfigurationException
file
- File containing a swap trade.SAXException
- Thrown by the xml parser.IOException
- Thrown if the file in not found or another IO error occured.ParserConfigurationException
- Thrown by the xml parser.Copyright © 2019. All rights reserved.