com.ebm_ws.infra.xmlmapping
Class XmlSerializer

java.lang.Object
  extended by com.ebm_ws.infra.xmlmapping.ObjInfoHolder
      extended by com.ebm_ws.infra.xmlmapping.XmlSerializer

public class XmlSerializer
extends ObjInfoHolder

The base class for instantiating an object model that conform to XML mapping rules.


Constructor Summary
XmlSerializer(SchemasManager iManager, IXmlObject iRoot)
           
 
Method Summary
 org.w3c.dom.Document getDocument()
          Returns the root instantiated object.
static XmlSerializer serialize(SchemasManager iManager, IXmlObject iRoot)
          Instantiates a declarative model that conforms to implicit XML Mapping rules.
static XmlSerializer serialize(SchemasManager iManager, IXmlObject iRoot, java.io.OutputStream output)
           
 
Methods inherited from class com.ebm_ws.infra.xmlmapping.ObjInfoHolder
addInfo, checkAllNodes, dumpMessages, getAllElementMessages, getAllMessages, getGlobalElementMessages, getInfoFromId, getInfoFromObj, getMappingElementMessages, hasMessages, removeAllInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlSerializer

public XmlSerializer(SchemasManager iManager,
                     IXmlObject iRoot)
              throws javax.xml.parsers.ParserConfigurationException
Throws:
javax.xml.parsers.ParserConfigurationException
Method Detail

getDocument

public org.w3c.dom.Document getDocument()
Returns the root instantiated object.

Returns:

serialize

public static final XmlSerializer serialize(SchemasManager iManager,
                                            IXmlObject iRoot)
                                     throws javax.xml.parsers.ParserConfigurationException
Instantiates a declarative model that conforms to implicit XML Mapping rules.

Parameters:
iInput - The XML input stream
Returns:
The root IXmlObject object of the model.
Throws:
javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.ParserConfigurationException
java.io.IOException
org.xml.sax.SAXException

serialize

public static final XmlSerializer serialize(SchemasManager iManager,
                                            IXmlObject iRoot,
                                            java.io.OutputStream output)
                                     throws javax.xml.parsers.ParserConfigurationException,
                                            javax.xml.transform.TransformerFactoryConfigurationError,
                                            javax.xml.transform.TransformerException,
                                            java.io.UnsupportedEncodingException
Throws:
javax.xml.parsers.ParserConfigurationException
javax.xml.transform.TransformerFactoryConfigurationError
javax.xml.transform.TransformerException
java.io.UnsupportedEncodingException


Copyright © 2008 eBMWebsourcing. All Rights Reserved.