public class SDOXMLHelperDelegator extends AbstractHelperDelegator implements SDOXMLHelper
Purpose: Helper to XML documents into DataObects and DataObjects into XML documents.
Responsibilities:
aHelperContext| Constructor and Description |
|---|
SDOXMLHelperDelegator() |
SDOXMLHelperDelegator(HelperContext aContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDescriptors(java.util.List descriptors)
INTERNAL:
|
XMLDocument |
createDocument(DataObject dataObject,
java.lang.String rootElementURI,
java.lang.String rootElementName)
Creates an XMLDocument with the specified XML rootElement for the DataObject.
|
SDOClassLoader |
getLoader()
INTERNAL:
|
Project |
getTopLinkProject()
INTERNAL:
|
XMLContext |
getXmlContext()
INTERNAL:
|
org.eclipse.persistence.internal.oxm.XMLConversionManager |
getXmlConversionManager()
INTERNAL:
|
SDOXMLHelperDelegate |
getXMLHelperDelegate() |
XMLMarshaller |
getXmlMarshaller()
INTERNAL:
|
XMLUnmarshaller |
getXmlUnmarshaller()
INTERNAL:
|
void |
initializeDescriptor(XMLDescriptor descriptor) |
XMLDocument |
load(org.xml.sax.InputSource inputSource,
java.lang.String locationURI,
java.lang.Object options)
INTERNAL:
|
XMLDocument |
load(java.io.InputStream inputStream)
Creates and returns an XMLDocument from the inputStream.
|
XMLDocument |
load(java.io.InputStream inputStream,
java.lang.String locationURI,
java.lang.Object options)
Creates and returns an XMLDocument from the inputStream.
|
XMLDocument |
load(java.io.Reader inputReader,
java.lang.String locationURI,
java.lang.Object options)
Creates and returns an XMLDocument from the inputReader.
|
XMLDocument |
load(javax.xml.transform.Source source,
java.lang.String locationURI,
java.lang.Object options)
Creates and returns an XMLDocument from the inputSource.
|
XMLDocument |
load(java.lang.String inputString)
Creates and returns an XMLDocument from the input String.
|
void |
reset()
INTERNAL:
|
java.lang.String |
save(DataObject dataObject,
java.lang.String rootElementURI,
java.lang.String rootElementName)
Returns the DataObject saved as an XML document with the specified root element.
|
void |
save(DataObject dataObject,
java.lang.String rootElementURI,
java.lang.String rootElementName,
java.io.OutputStream outputStream)
Saves the DataObject as an XML document with the specified root element.
|
void |
save(XMLDocument xmlDocument,
java.io.OutputStream outputStream,
java.lang.Object options)
Serializes an XMLDocument as an XML document into the outputStream.
|
void |
save(XMLDocument xmlDocument,
javax.xml.transform.Result result,
java.lang.Object options)
Serializes an XMLDocument as an XML document into the outputResult in a
serialization technology independent format (as specified in
javax.xml.transform).
|
void |
save(XMLDocument xmlDocument,
java.io.Writer outputWriter,
java.lang.Object options)
Serializes an XMLDocument as an XML document into the outputWriter.
|
void |
serialize(XMLDocument xmlDocument,
java.io.OutputStream outputStream,
java.lang.Object options) |
void |
setLoader(SDOClassLoader loader)
INTERNAL:
|
void |
setTimeZone(java.util.TimeZone timeZone)
The specified TimeZone will be used for all String to date object
conversions.
|
void |
setTimeZoneQualified(boolean timeZoneQualified)
By setting this flag to true the marshalled date objects marshalled to
the XML schema types time and dateTime will be qualified by a time zone.
|
void |
setTopLinkProject(Project toplinkProject)
INTERNAL:
|
void |
setXmlContext(XMLContext xmlContext)
INTERNAL:
|
void |
setXmlMarshaller(XMLMarshaller xmlMarshaller)
INTERNAL:
|
void |
setXmlUnmarshaller(XMLUnmarshaller xmlUnmarshaller)
INTERNAL:
|
getHelperContext, setHelperContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHelperContext, setHelperContextpublic SDOXMLHelperDelegator()
public SDOXMLHelperDelegator(HelperContext aContext)
public void setTimeZone(java.util.TimeZone timeZone)
setTimeZone in interface SDOXMLHelperpublic void setTimeZoneQualified(boolean timeZoneQualified)
setTimeZoneQualified in interface SDOXMLHelperpublic XMLDocument load(java.lang.String inputString)
XMLHelperpublic XMLDocument load(java.io.InputStream inputStream) throws java.io.IOException
XMLHelperpublic XMLDocument load(java.io.InputStream inputStream, java.lang.String locationURI, java.lang.Object options) throws java.io.IOException
XMLHelperload in interface XMLHelperinputStream - specifies the InputStream to read fromlocationURI - specifies the URI of the document for relative schema locationsoptions - implementation-specific options.java.io.IOException - for stream exceptions.public XMLDocument load(org.xml.sax.InputSource inputSource, java.lang.String locationURI, java.lang.Object options) throws java.io.IOException
SDOXMLHelperload in interface SDOXMLHelperjava.io.IOExceptionpublic XMLDocument load(java.io.Reader inputReader, java.lang.String locationURI, java.lang.Object options) throws java.io.IOException
XMLHelperload in interface XMLHelperinputReader - specifies the Reader to read fromlocationURI - specifies the URI of the document for relative schema locationsoptions - implementation-specific options.java.io.IOException - for stream exceptions.public XMLDocument load(javax.xml.transform.Source source, java.lang.String locationURI, java.lang.Object options) throws java.io.IOException
XMLHelperload in interface XMLHelpersource - specifies the Source to read fromlocationURI - specifies the URI of the document for relative schema locationsoptions - implementation-specific options.java.io.IOException - for stream exceptions.public java.lang.String save(DataObject dataObject, java.lang.String rootElementURI, java.lang.String rootElementName)
XMLHelperpublic void save(DataObject dataObject, java.lang.String rootElementURI, java.lang.String rootElementName, java.io.OutputStream outputStream) throws java.io.IOException
XMLHelpersave in interface XMLHelperdataObject - specifies DataObject to be savedrootElementURI - the Target Namespace URI of the root XML elementrootElementName - the Name of the root XML elementoutputStream - specifies the OutputStream to write to.java.io.IOException - for stream exceptions.public void save(XMLDocument xmlDocument, java.io.OutputStream outputStream, java.lang.Object options) throws java.io.IOException
XMLHelperpublic void save(XMLDocument xmlDocument, java.io.Writer outputWriter, java.lang.Object options) throws java.io.IOException
XMLHelperpublic void save(XMLDocument xmlDocument, javax.xml.transform.Result result, java.lang.Object options) throws java.io.IOException
XMLHelperpublic void serialize(XMLDocument xmlDocument, java.io.OutputStream outputStream, java.lang.Object options) throws java.io.IOException
serialize in interface SDOXMLHelperjava.io.IOExceptionpublic XMLDocument createDocument(DataObject dataObject, java.lang.String rootElementURI, java.lang.String rootElementName)
XMLHelpercreateDocument in interface XMLHelperdataObject - specifies DataObject to be savedrootElementURI - the Target Namespace URI of the root XML elementrootElementName - the Name of the root XML elementpublic void setLoader(SDOClassLoader loader)
SDOXMLHelpersetLoader in interface SDOXMLHelperpublic SDOClassLoader getLoader()
SDOXMLHelpergetLoader in interface SDOXMLHelperpublic void setXmlContext(XMLContext xmlContext)
SDOXMLHelpersetXmlContext in interface SDOXMLHelperpublic XMLContext getXmlContext()
SDOXMLHelpergetXmlContext in interface SDOXMLHelperpublic void addDescriptors(java.util.List descriptors)
SDOXMLHelperaddDescriptors in interface SDOXMLHelperpublic void setTopLinkProject(Project toplinkProject)
SDOXMLHelpersetTopLinkProject in interface SDOXMLHelperpublic void initializeDescriptor(XMLDescriptor descriptor)
initializeDescriptor in interface SDOXMLHelperpublic Project getTopLinkProject()
SDOXMLHelpergetTopLinkProject in interface SDOXMLHelperpublic void setXmlMarshaller(XMLMarshaller xmlMarshaller)
SDOXMLHelpersetXmlMarshaller in interface SDOXMLHelperpublic XMLMarshaller getXmlMarshaller()
SDOXMLHelpergetXmlMarshaller in interface SDOXMLHelperpublic void setXmlUnmarshaller(XMLUnmarshaller xmlUnmarshaller)
SDOXMLHelpersetXmlUnmarshaller in interface SDOXMLHelperpublic XMLUnmarshaller getXmlUnmarshaller()
SDOXMLHelpergetXmlUnmarshaller in interface SDOXMLHelperpublic SDOXMLHelperDelegate getXMLHelperDelegate()
public void reset()
SDOXMLHelperreset in interface SDOXMLHelperpublic org.eclipse.persistence.internal.oxm.XMLConversionManager getXmlConversionManager()
SDOXMLHelpergetXmlConversionManager in interface SDOXMLHelper