org.apache.tuscany.sdo.helper
Class XMLHelperImpl

java.lang.Object
  extended by org.apache.tuscany.sdo.helper.XMLHelperImpl
All Implemented Interfaces:
commonj.sdo.helper.XMLHelper

public class XMLHelperImpl
extends java.lang.Object
implements commonj.sdo.helper.XMLHelper

A helper to convert XML documents into DataObects and DataObjects into XML documnets.


Field Summary
 
Fields inherited from interface commonj.sdo.helper.XMLHelper
INSTANCE
 
Constructor Summary
XMLHelperImpl(org.eclipse.emf.ecore.util.ExtendedMetaData extendedMetaData)
           
XMLHelperImpl(commonj.sdo.helper.TypeHelper typeHelper)
           
 
Method Summary
 commonj.sdo.helper.XMLDocument createDocument(commonj.sdo.DataObject dataObject, java.lang.String rootElementURI, java.lang.String rootElementName)
           
 commonj.sdo.helper.XMLDocument load(java.io.InputStream inputStream)
           
 commonj.sdo.helper.XMLDocument load(java.io.InputStream inputStream, java.lang.String locationURI, java.lang.Object options)
           
 commonj.sdo.helper.XMLDocument load(java.io.Reader inputReader, java.lang.String locationURI, java.lang.Object options)
           
 commonj.sdo.helper.XMLDocument load(java.lang.String inputString)
           
 java.lang.String save(commonj.sdo.DataObject dataObject, java.lang.String rootElementURI, java.lang.String rootElementName)
           
 void save(commonj.sdo.DataObject dataObject, java.lang.String rootElementURI, java.lang.String rootElementName, java.io.OutputStream outputStream)
           
 void save(commonj.sdo.helper.XMLDocument xmlDocument, java.io.OutputStream outputStream, java.lang.Object options)
           
 void save(commonj.sdo.helper.XMLDocument xmlDocument, java.io.Writer outputWriter, java.lang.Object options)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLHelperImpl

public XMLHelperImpl(org.eclipse.emf.ecore.util.ExtendedMetaData extendedMetaData)

XMLHelperImpl

public XMLHelperImpl(commonj.sdo.helper.TypeHelper typeHelper)
Method Detail

load

public commonj.sdo.helper.XMLDocument load(java.lang.String inputString)
Specified by:
load in interface commonj.sdo.helper.XMLHelper

load

public commonj.sdo.helper.XMLDocument load(java.io.InputStream inputStream)
                                    throws java.io.IOException
Specified by:
load in interface commonj.sdo.helper.XMLHelper
Throws:
java.io.IOException

load

public commonj.sdo.helper.XMLDocument load(java.io.InputStream inputStream,
                                           java.lang.String locationURI,
                                           java.lang.Object options)
                                    throws java.io.IOException
Specified by:
load in interface commonj.sdo.helper.XMLHelper
Throws:
java.io.IOException

load

public commonj.sdo.helper.XMLDocument load(java.io.Reader inputReader,
                                           java.lang.String locationURI,
                                           java.lang.Object options)
                                    throws java.io.IOException
Specified by:
load in interface commonj.sdo.helper.XMLHelper
Throws:
java.io.IOException

save

public java.lang.String save(commonj.sdo.DataObject dataObject,
                             java.lang.String rootElementURI,
                             java.lang.String rootElementName)
Specified by:
save in interface commonj.sdo.helper.XMLHelper

save

public void save(commonj.sdo.DataObject dataObject,
                 java.lang.String rootElementURI,
                 java.lang.String rootElementName,
                 java.io.OutputStream outputStream)
          throws java.io.IOException
Specified by:
save in interface commonj.sdo.helper.XMLHelper
Throws:
java.io.IOException

save

public void save(commonj.sdo.helper.XMLDocument xmlDocument,
                 java.io.OutputStream outputStream,
                 java.lang.Object options)
          throws java.io.IOException
Specified by:
save in interface commonj.sdo.helper.XMLHelper
Throws:
java.io.IOException

save

public void save(commonj.sdo.helper.XMLDocument xmlDocument,
                 java.io.Writer outputWriter,
                 java.lang.Object options)
          throws java.io.IOException
Specified by:
save in interface commonj.sdo.helper.XMLHelper
Throws:
java.io.IOException

createDocument

public commonj.sdo.helper.XMLDocument createDocument(commonj.sdo.DataObject dataObject,
                                                     java.lang.String rootElementURI,
                                                     java.lang.String rootElementName)
Specified by:
createDocument in interface commonj.sdo.helper.XMLHelper


Copyright © 2006 Apache Software Foundation. All Rights Reserved.