- java.lang.Object
-
- net.finmath.modelling.descriptor.xmlparser.FPMLParser
-
-
Constructor Summary
Constructors Constructor Description FPMLParser(String homePartyId, String discountCurveName)Construct the parser.FPMLParser(String homePartyId, String forwardCurveName, String discountCurveName)Construct the parser.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProductDescriptorgetProductDescriptor(File file)Parse a product descriptor from a file.ProductDescriptorgetProductDescriptor(Node node)Generates a product descriptor from an already existing Document.
-
-
-
Constructor Detail
-
FPMLParser
public FPMLParser(String homePartyId, String forwardCurveName, String discountCurveName)
Construct the parser.- Parameters:
homePartyId- Id of the agent doing the valuation.forwardCurveName- Name of the forward curve to be given to the descriptors.discountCurveName- Name of the discount curve to be given to the descriptors.
-
-
Method Detail
-
getProductDescriptor
public ProductDescriptor getProductDescriptor(File file) throws SAXException, IOException, ParserConfigurationException
Description copied from interface:XMLParserParse a product descriptor from a file.- Specified by:
getProductDescriptorin interfaceXMLParser- Parameters:
file- File containing a trade.- Returns:
- Product descriptor extracted from the file.
- Throws:
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.
-
getProductDescriptor
public ProductDescriptor getProductDescriptor(Node node)
Generates a product descriptor from an already existing Document.- Parameters:
node- The leaf node where the product description starts in the XML.- Returns:
- ProductDescriptor
- Throws:
IllegalArgumentException- Thrown id the document is not an FpML 5 document.
-
-