com.epam.xml
Class XMLEngineImpl<T>

java.lang.Object
  extended by 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 Summary
XMLEngineImpl(XMLUnmarshaler<T> unmapshaler)
           
 
Method Summary
 void marshal(Class<?> source, XMLWriter xmlWriter)
          This method does not implemented for current time.
 T unmarshal(Class<?> source, DocumentReader reader, boolean replaceData)
          Converts the XML documents into java objects.
 T unmarshal(Class<?> source, InputStream inputStream, boolean replaceData)
          Converts the XML documents into java objects.
 T unmarshal(T source, DocumentReader reader, boolean replaceData)
          Converts the XML documents into java objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLEngineImpl

public XMLEngineImpl(XMLUnmarshaler<T> unmapshaler)
Method Detail

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.


Copyright © 2000-2014 EPAM Systems. All Rights Reserved.