Package com.epam.xml

Class XMLEngineImpl<T>

java.lang.Object
com.epam.xml.XMLEngineImpl<T>
All Implemented Interfaces:
XMLEngine<T>

public class XMLEngineImpl<T> extends Object implements XMLEngine<T>
The XML engine, provides the main functionality to construct and load the FIX dictionary and FAST template.
  • Constructor Details

  • Method Details

    • marshal

      public void marshal(Class<?> source, XMLWriter xmlWriter)
      Description copied from interface: XMLEngine
      This method does not implemented for current time.
      Specified by:
      marshal in interface XMLEngine<T>
      Parameters:
      source - Instance of Object for marshal to XML.
      xmlWriter - Instance of XMLWriter for write XML.
    • unmarshal

      public T unmarshal(Class<?> source, InputStream inputStream, boolean replaceData)
      Description copied from interface: XMLEngine
      Converts the XML documents into java objects.
      Specified by:
      unmarshal in interface XMLEngine<T>
      Parameters:
      source - Instance of java object for serialize xml into this object.
      inputStream - Stream of XML document.
      Returns:
      Instance of Java object.
    • unmarshal

      public T unmarshal(Class<?> source, DocumentReader reader, boolean replaceData)
      Description copied from interface: XMLEngine
      Converts the XML documents into java objects.
      Specified by:
      unmarshal in interface XMLEngine<T>
      Parameters:
      source - Instance of java object for serialize xml into this object.
      reader - Instance of Document reader.
      Returns:
      Instance of Java object.
    • unmarshal

      public T unmarshal(T source, DocumentReader reader, boolean replaceData)
      Description copied from interface: XMLEngine
      Converts the XML documents into java objects.
      Specified by:
      unmarshal in interface XMLEngine<T>
      Parameters:
      source - Instance of java object for serialize xml into this object.
      reader - Instance of Document reader.
      Returns:
      Instance of Java object.