Class SDCXMLParser
java.lang.Object
net.finmath.smartcontract.product.xml.SDCXMLParser
A lean XML parser for the SDC XML format. See smartderivativecontract.xsd
- Author:
- Christian Fries
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> String
Generic object-to-XML-string converter for all annotated classesstatic String
marshalSDCToXMLString
(Smartderivativecontract smartderivativecontract) this version of an SDC-object-to-XML-string conversion includes text replacements to get rid of XML namespace tags like "fpml:dataDocument"static <T> T
unmarshalXml
(String xml, Class<T> t)
-
Method Details
-
parse
public static SmartDerivativeContractDescriptor parse(String sdcxml) throws ParserConfigurationException, IOException, SAXException -
unmarshalXml
-
marshalClassToXMLString
Generic object-to-XML-string converter for all annotated classes- Type Parameters:
T
- generic Type, which has the correct XML bind annotations- Parameters:
t
- object to be converted to an XML string- Returns:
- XML formatted String
-
marshalSDCToXMLString
this version of an SDC-object-to-XML-string conversion includes text replacements to get rid of XML namespace tags like "fpml:dataDocument"- Parameters:
smartderivativecontract
- SDC product data object which will be transformed into an XML string- Returns:
- formatted xml string
-