|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) E28847-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
org.eclipse.persistence.sdo.helper.delegates.SDOXMLHelperDelegate
public class SDOXMLHelperDelegate
Purpose: Helper to XML documents into DataObects and DataObjects into XML documents.
Responsibilities:
Field Summary | |
---|---|
private HelperContext |
aHelperContext |
private SDOClassLoader |
loader |
private Project |
topLinkProject |
private XMLContext |
xmlContext |
private java.util.Map<java.lang.Thread,XMLMarshaller> |
xmlMarshallerMap |
private java.util.Map<java.lang.Thread,XMLUnmarshaller> |
xmlUnmarshallerMap |
Constructor Summary | |
---|---|
SDOXMLHelperDelegate(HelperContext aContext) |
|
SDOXMLHelperDelegate(HelperContext aContext, java.lang.ClassLoader aClassLoader) |
Method Summary | |
---|---|
void |
addDescriptors(java.util.List types) INTERNAL: |
XMLDocument |
createDocument(DataObject dataObject, java.lang.String rootElementURI, java.lang.String rootElementName) Creates an XMLDocument with the specified XML rootElement for the DataObject. |
HelperContext |
getHelperContext() INTERNAL: Return the helperContext that this instance is associated with. |
SDOClassLoader |
getLoader() INTERNAL: |
Project |
getTopLinkProject() INTERNAL: |
XMLContext |
getXmlContext() INTERNAL: |
org.eclipse.persistence.internal.oxm.XMLConversionManager |
getXmlConversionManager() INTERNAL: |
XMLMarshaller |
getXmlMarshaller() INTERNAL: |
private XMLMarshaller |
getXmlMarshaller(java.lang.Object options) |
XMLUnmarshaller |
getXmlUnmarshaller() INTERNAL: |
private XMLUnmarshaller |
getXmlUnmarshaller(java.lang.Object options) |
private void |
handleXMLMarshalException(XMLMarshalException xmlException) |
void |
initializeDescriptor(XMLDescriptor descriptor) |
XMLDocument |
load(org.xml.sax.InputSource inputSource, java.lang.String locationURI, java.lang.Object options) Creates and returns an XMLDocument from the inputSource. |
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) |
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. |
private void |
save(DataObject rootObject, java.lang.String rootElementURI, java.lang.String rootElementName, java.io.Writer writer, XMLMarshaller anXMLMarshaller) INTERNAL: 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) |
void |
save(XMLDocument xmlDocument, java.io.Writer outputWriter, java.lang.Object options) Serializes an XMLDocument as an XML document into the outputWriter. |
private void |
save(XMLDocument xmlDocument, java.io.Writer outputWriter, XMLMarshaller anXMLMarshaller) |
void |
serialize(XMLDocument xmlDocument, java.io.OutputStream outputStream, java.lang.Object options) |
void |
setHelperContext(HelperContext helperContext) INTERNAL: Set the helperContext that this instance is associated with. |
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: |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private SDOClassLoader loader
private XMLContext xmlContext
private java.util.Map<java.lang.Thread,XMLMarshaller> xmlMarshallerMap
private java.util.Map<java.lang.Thread,XMLUnmarshaller> xmlUnmarshallerMap
private Project topLinkProject
private HelperContext aHelperContext
Constructor Detail |
---|
public SDOXMLHelperDelegate(HelperContext aContext)
public SDOXMLHelperDelegate(HelperContext aContext, java.lang.ClassLoader aClassLoader)
Method Detail |
---|
public void setTimeZone(java.util.TimeZone timeZone)
setTimeZone
in interface SDOXMLHelper
public void setTimeZoneQualified(boolean timeZoneQualified)
setTimeZoneQualified
in interface SDOXMLHelper
public XMLDocument load(java.lang.String inputString)
inputString
- specifies the String to read fromjava.lang.RuntimeException
- for errors in XML parsing or implementation-specific validation.public XMLDocument load(java.io.InputStream inputStream) throws java.io.IOException
inputStream
- specifies the InputStream to read fromjava.io.IOException
- for stream exceptions.java.lang.RuntimeException
- for errors in XML parsing or implementation-specific validation.public XMLDocument load(java.io.InputStream inputStream, java.lang.String locationURI, java.lang.Object options) throws java.io.IOException
inputStream
- 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.java.lang.RuntimeException
- for errors in XML parsing or implementation-specific validation.public XMLDocument load(org.xml.sax.InputSource inputSource, java.lang.String locationURI, java.lang.Object options) throws java.io.IOException
load
in interface SDOXMLHelper
inputSource
- specifies the InputSource to read fromlocationURI
- specifies the URI of the document for relative schema locationsoptions
- implementation-specific options.java.io.IOException
- for stream exceptions.java.lang.RuntimeException
- for errors in XML parsing or implementation-specific validation.public XMLDocument load(java.io.Reader inputReader, java.lang.String locationURI, java.lang.Object options) throws java.io.IOException
inputReader
- 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.java.lang.RuntimeException
- for errors in XML parsing or implementation-specific validation.public XMLDocument load(javax.xml.transform.Source source, java.lang.String locationURI, java.lang.Object options) throws java.io.IOException
java.io.IOException
public java.lang.String save(DataObject dataObject, java.lang.String rootElementURI, java.lang.String rootElementName)
dataObject
- specifies DataObject to be savedrootElementURI
- the Target Namespace URI of the root XML elementrootElementName
- the Name of the root XML elementjava.lang.IllegalArgumentException
- if the dataObject tree is not closed or has no container.public void save(DataObject dataObject, java.lang.String rootElementURI, java.lang.String rootElementName, java.io.OutputStream outputStream) throws XMLMarshalException, java.io.IOException
dataObject
- 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.java.lang.IllegalArgumentException
- if the dataObject tree is not closed or has no container.XMLMarshalException
public void serialize(XMLDocument xmlDocument, java.io.OutputStream outputStream, java.lang.Object options) throws java.io.IOException
serialize
in interface SDOXMLHelper
java.io.IOException
public void save(XMLDocument xmlDocument, java.io.OutputStream outputStream, java.lang.Object options) throws java.io.IOException
xmlDocument
- specifies XMLDocument to be savedoutputStream
- specifies the OutputStream to write to.options
- implementation-specific options.java.io.IOException
- for stream exceptions.java.lang.IllegalArgumentException
- if the dataObject tree is not closed or has no container.public void save(XMLDocument xmlDocument, java.io.Writer outputWriter, java.lang.Object options) throws java.io.IOException
xmlDocument
- specifies XMLDocument to be savedoutputWriter
- specifies the Writer to write to.options
- implementation-specific options.java.io.IOException
- for stream exceptions.java.lang.IllegalArgumentException
- if the dataObject tree is not closed or has no container.private void save(XMLDocument xmlDocument, java.io.Writer outputWriter, XMLMarshaller anXMLMarshaller) throws java.io.IOException
java.io.IOException
public void save(XMLDocument xmlDocument, javax.xml.transform.Result result, java.lang.Object options) throws java.io.IOException
java.io.IOException
public XMLDocument createDocument(DataObject dataObject, java.lang.String rootElementURI, java.lang.String rootElementName)
dataObject
- specifies DataObject to be savedrootElementURI
- the Target Namespace URI of the root XML elementrootElementName
- the Name of the root XML elementprivate void save(DataObject rootObject, java.lang.String rootElementURI, java.lang.String rootElementName, java.io.Writer writer, XMLMarshaller anXMLMarshaller) throws XMLMarshalException
dataObject
- specifies DataObject to be savedrootElementURI
- the Target Namespace URI of the root XML elementrootElementName
- the Name of the root XML elementwriter
- specifies the Writer to write to.java.io.IOException
- for stream exceptions.java.lang.IllegalArgumentException
- if the dataObject tree is not closed or has no container.XMLMarshalException
public void setLoader(SDOClassLoader loader)
SDOXMLHelper
setLoader
in interface SDOXMLHelper
public SDOClassLoader getLoader()
SDOXMLHelper
getLoader
in interface SDOXMLHelper
public void setXmlContext(XMLContext xmlContext)
SDOXMLHelper
setXmlContext
in interface SDOXMLHelper
public XMLContext getXmlContext()
SDOXMLHelper
getXmlContext
in interface SDOXMLHelper
public void initializeDescriptor(XMLDescriptor descriptor)
initializeDescriptor
in interface SDOXMLHelper
public void addDescriptors(java.util.List types)
SDOXMLHelper
addDescriptors
in interface SDOXMLHelper
public void setTopLinkProject(Project toplinkProject)
SDOXMLHelper
setTopLinkProject
in interface SDOXMLHelper
public Project getTopLinkProject()
SDOXMLHelper
getTopLinkProject
in interface SDOXMLHelper
public void setXmlMarshaller(XMLMarshaller xmlMarshaller)
SDOXMLHelper
setXmlMarshaller
in interface SDOXMLHelper
public XMLMarshaller getXmlMarshaller()
SDOXMLHelper
getXmlMarshaller
in interface SDOXMLHelper
private XMLMarshaller getXmlMarshaller(java.lang.Object options)
public void setXmlUnmarshaller(XMLUnmarshaller xmlUnmarshaller)
SDOXMLHelper
setXmlUnmarshaller
in interface SDOXMLHelper
public XMLUnmarshaller getXmlUnmarshaller()
SDOXMLHelper
getXmlUnmarshaller
in interface SDOXMLHelper
private XMLUnmarshaller getXmlUnmarshaller(java.lang.Object options)
public void reset()
SDOXMLHelper
reset
in interface SDOXMLHelper
public HelperContext getHelperContext()
SDOXMLHelper
getHelperContext
in interface SDOXMLHelper
public void setHelperContext(HelperContext helperContext)
SDOXMLHelper
setHelperContext
in interface SDOXMLHelper
private void handleXMLMarshalException(XMLMarshalException xmlException) throws java.io.IOException
java.io.IOException
public org.eclipse.persistence.internal.oxm.XMLConversionManager getXmlConversionManager()
SDOXMLHelper
getXmlConversionManager
in interface SDOXMLHelper
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |