java.lang.Object
net.finmath.decryptionoracle.decryption.xml.XMLUtils

public class XMLUtils extends Object
XML Utilities. marshal and unmarshal to/form XML.
Author:
Christian Fries
  • Method Details

    • unmarshalXml

      public static <T> T unmarshalXml(String xml, Class<T> t)

      unmarshalXml.

      Type Parameters:
      T - a T class
      Parameters:
      xml - a String object
      t - a Class object
      Returns:
      a T object
    • marshalClassToXMLString

      public static <T> String marshalClassToXMLString(T t)
      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