Class SDOXMLHelperDelegator
- java.lang.Object
-
- org.eclipse.persistence.sdo.helper.delegates.AbstractHelperDelegator
-
- org.eclipse.persistence.sdo.helper.delegates.SDOXMLHelperDelegator
-
- All Implemented Interfaces:
commonj.sdo.helper.XMLHelper,SDOXMLHelper
public class SDOXMLHelperDelegator extends AbstractHelperDelegator implements SDOXMLHelper
Purpose: Helper to XML documents into DataObects and DataObjects into XML documents.
Responsibilities:
- Finds the appropriate SDOXMLHelperDelegate for the classLoader/application name and delegates work to that
- Load methods create commonj.sdo.XMLDocument objects from XML (unmarshal)
- Save methods create XML from commonj.sdo.XMLDocument and commonj.sdo.DataObject objects (marshal)
-
-
Field Summary
-
Fields inherited from class org.eclipse.persistence.sdo.helper.delegates.AbstractHelperDelegator
aHelperContext
-
-
Constructor Summary
Constructors Constructor Description SDOXMLHelperDelegator()SDOXMLHelperDelegator(commonj.sdo.helper.HelperContext aContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDescriptors(java.util.List descriptors)INTERNAL:commonj.sdo.helper.XMLDocumentcreateDocument(commonj.sdo.DataObject dataObject, java.lang.String rootElementURI, java.lang.String rootElementName)SDOClassLoadergetLoader()INTERNAL:org.eclipse.persistence.sessions.ProjectgetTopLinkProject()INTERNAL:org.eclipse.persistence.oxm.XMLContextgetXmlContext()INTERNAL:org.eclipse.persistence.internal.oxm.XMLConversionManagergetXmlConversionManager()INTERNAL:SDOXMLHelperDelegategetXMLHelperDelegate()org.eclipse.persistence.oxm.XMLMarshallergetXmlMarshaller()INTERNAL:org.eclipse.persistence.oxm.XMLUnmarshallergetXmlUnmarshaller()INTERNAL:voidinitializeDescriptor(org.eclipse.persistence.oxm.XMLDescriptor descriptor)commonj.sdo.helper.XMLDocumentload(java.io.InputStream inputStream)commonj.sdo.helper.XMLDocumentload(java.io.InputStream inputStream, java.lang.String locationURI, java.lang.Object options)commonj.sdo.helper.XMLDocumentload(java.io.Reader inputReader, java.lang.String locationURI, java.lang.Object options)commonj.sdo.helper.XMLDocumentload(java.lang.String inputString)commonj.sdo.helper.XMLDocumentload(javax.xml.transform.Source source, java.lang.String locationURI, java.lang.Object options)commonj.sdo.helper.XMLDocumentload(org.xml.sax.InputSource inputSource, java.lang.String locationURI, java.lang.Object options)INTERNAL:voidreset()INTERNAL:java.lang.Stringsave(commonj.sdo.DataObject dataObject, java.lang.String rootElementURI, java.lang.String rootElementName)voidsave(commonj.sdo.DataObject dataObject, java.lang.String rootElementURI, java.lang.String rootElementName, java.io.OutputStream outputStream)voidsave(commonj.sdo.helper.XMLDocument xmlDocument, java.io.OutputStream outputStream, java.lang.Object options)voidsave(commonj.sdo.helper.XMLDocument xmlDocument, java.io.Writer outputWriter, java.lang.Object options)voidsave(commonj.sdo.helper.XMLDocument xmlDocument, javax.xml.transform.Result result, java.lang.Object options)voidserialize(commonj.sdo.helper.XMLDocument xmlDocument, java.io.OutputStream outputStream, java.lang.Object options)voidsetLoader(SDOClassLoader loader)INTERNAL:voidsetTimeZone(java.util.TimeZone timeZone)The specified TimeZone will be used for all String to date object conversions.voidsetTimeZoneQualified(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.voidsetTopLinkProject(org.eclipse.persistence.sessions.Project toplinkProject)INTERNAL:voidsetXmlContext(org.eclipse.persistence.oxm.XMLContext xmlContext)INTERNAL:voidsetXmlMarshaller(org.eclipse.persistence.oxm.XMLMarshaller xmlMarshaller)INTERNAL:voidsetXmlUnmarshaller(org.eclipse.persistence.oxm.XMLUnmarshaller xmlUnmarshaller)INTERNAL:-
Methods inherited from class org.eclipse.persistence.sdo.helper.delegates.AbstractHelperDelegator
getHelperContext, setHelperContext
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.persistence.sdo.helper.SDOXMLHelper
getHelperContext, setHelperContext
-
-
-
-
Method Detail
-
setTimeZone
public void setTimeZone(java.util.TimeZone timeZone)
The specified TimeZone will be used for all String to date object conversions. By default the TimeZone from the JVM is used.- Specified by:
setTimeZonein interfaceSDOXMLHelper
-
setTimeZoneQualified
public 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. By default time information is not time zone qualified.- Specified by:
setTimeZoneQualifiedin interfaceSDOXMLHelper
-
load
public commonj.sdo.helper.XMLDocument load(java.lang.String inputString)
- Specified by:
loadin interfacecommonj.sdo.helper.XMLHelper
-
load
public commonj.sdo.helper.XMLDocument load(java.io.InputStream inputStream) throws java.io.IOException- Specified by:
loadin interfacecommonj.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:
loadin interfacecommonj.sdo.helper.XMLHelper- Throws:
java.io.IOException
-
load
public commonj.sdo.helper.XMLDocument load(org.xml.sax.InputSource inputSource, java.lang.String locationURI, java.lang.Object options) throws java.io.IOExceptionDescription copied from interface:SDOXMLHelperINTERNAL:- Specified by:
loadin interfaceSDOXMLHelper- Returns:
- 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:
loadin interfacecommonj.sdo.helper.XMLHelper- Throws:
java.io.IOException
-
load
public commonj.sdo.helper.XMLDocument load(javax.xml.transform.Source source, java.lang.String locationURI, java.lang.Object options) throws java.io.IOException- Specified by:
loadin interfacecommonj.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:
savein interfacecommonj.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:
savein interfacecommonj.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:
savein interfacecommonj.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:
savein interfacecommonj.sdo.helper.XMLHelper- Throws:
java.io.IOException
-
save
public void save(commonj.sdo.helper.XMLDocument xmlDocument, javax.xml.transform.Result result, java.lang.Object options) throws java.io.IOException- Specified by:
savein interfacecommonj.sdo.helper.XMLHelper- Throws:
java.io.IOException
-
serialize
public void serialize(commonj.sdo.helper.XMLDocument xmlDocument, java.io.OutputStream outputStream, java.lang.Object options) throws java.io.IOException- Specified by:
serializein interfaceSDOXMLHelper- 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:
createDocumentin interfacecommonj.sdo.helper.XMLHelper
-
setLoader
public void setLoader(SDOClassLoader loader)
Description copied from interface:SDOXMLHelperINTERNAL:- Specified by:
setLoaderin interfaceSDOXMLHelper
-
getLoader
public SDOClassLoader getLoader()
Description copied from interface:SDOXMLHelperINTERNAL:- Specified by:
getLoaderin interfaceSDOXMLHelper- Returns:
-
setXmlContext
public void setXmlContext(org.eclipse.persistence.oxm.XMLContext xmlContext)
Description copied from interface:SDOXMLHelperINTERNAL:- Specified by:
setXmlContextin interfaceSDOXMLHelper
-
getXmlContext
public org.eclipse.persistence.oxm.XMLContext getXmlContext()
Description copied from interface:SDOXMLHelperINTERNAL:- Specified by:
getXmlContextin interfaceSDOXMLHelper- Returns:
-
addDescriptors
public void addDescriptors(java.util.List descriptors)
Description copied from interface:SDOXMLHelperINTERNAL:- Specified by:
addDescriptorsin interfaceSDOXMLHelper
-
setTopLinkProject
public void setTopLinkProject(org.eclipse.persistence.sessions.Project toplinkProject)
Description copied from interface:SDOXMLHelperINTERNAL:- Specified by:
setTopLinkProjectin interfaceSDOXMLHelper
-
initializeDescriptor
public void initializeDescriptor(org.eclipse.persistence.oxm.XMLDescriptor descriptor)
- Specified by:
initializeDescriptorin interfaceSDOXMLHelper
-
getTopLinkProject
public org.eclipse.persistence.sessions.Project getTopLinkProject()
Description copied from interface:SDOXMLHelperINTERNAL:- Specified by:
getTopLinkProjectin interfaceSDOXMLHelper- Returns:
-
setXmlMarshaller
public void setXmlMarshaller(org.eclipse.persistence.oxm.XMLMarshaller xmlMarshaller)
Description copied from interface:SDOXMLHelperINTERNAL:- Specified by:
setXmlMarshallerin interfaceSDOXMLHelper
-
getXmlMarshaller
public org.eclipse.persistence.oxm.XMLMarshaller getXmlMarshaller()
Description copied from interface:SDOXMLHelperINTERNAL:- Specified by:
getXmlMarshallerin interfaceSDOXMLHelper- Returns:
-
setXmlUnmarshaller
public void setXmlUnmarshaller(org.eclipse.persistence.oxm.XMLUnmarshaller xmlUnmarshaller)
Description copied from interface:SDOXMLHelperINTERNAL:- Specified by:
setXmlUnmarshallerin interfaceSDOXMLHelper
-
getXmlUnmarshaller
public org.eclipse.persistence.oxm.XMLUnmarshaller getXmlUnmarshaller()
Description copied from interface:SDOXMLHelperINTERNAL:- Specified by:
getXmlUnmarshallerin interfaceSDOXMLHelper- Returns:
-
getXMLHelperDelegate
public SDOXMLHelperDelegate getXMLHelperDelegate()
-
reset
public void reset()
Description copied from interface:SDOXMLHelperINTERNAL:- Specified by:
resetin interfaceSDOXMLHelper
-
getXmlConversionManager
public org.eclipse.persistence.internal.oxm.XMLConversionManager getXmlConversionManager()
Description copied from interface:SDOXMLHelperINTERNAL:- Specified by:
getXmlConversionManagerin interfaceSDOXMLHelper
-
-