Module org.eclipse.persistence.sdo
Interface SDOXMLHelper
-
- All Superinterfaces:
XMLHelper
- All Known Implementing Classes:
JAXBXMLHelper,SDOXMLHelperDelegate,SDOXMLHelperDelegator
public interface SDOXMLHelper extends XMLHelper
Purpose: Helper to transform XML documents into DataObects and DataObjects into XML documents.
Responsibilities:
- Load methods create commonj.sdo.XMLDocument objects from XML (unmarshal)
- Save methods create XML from commonj.sdo.XMLDocument and commonj.sdo.DataObject objects (marshal)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddDescriptors(List descriptors)INTERNAL:HelperContextgetHelperContext()INTERNAL: Return the helperContext that this instance is associated with.SDOClassLoadergetLoader()INTERNAL:org.eclipse.persistence.sessions.ProjectgetTopLinkProject()INTERNAL:org.eclipse.persistence.oxm.XMLContextgetXmlContext()INTERNAL:org.eclipse.persistence.internal.oxm.XMLConversionManagergetXmlConversionManager()INTERNAL:org.eclipse.persistence.oxm.XMLMarshallergetXmlMarshaller()INTERNAL:org.eclipse.persistence.oxm.XMLUnmarshallergetXmlUnmarshaller()INTERNAL:voidinitializeDescriptor(org.eclipse.persistence.oxm.XMLDescriptor descriptor)XMLDocumentload(InputSource inputSource, String locationURI, Object options)INTERNAL:voidreset()INTERNAL:voidserialize(XMLDocument xmlDocument, OutputStream outputStream, Object options)voidsetHelperContext(HelperContext helperContext)INTERNAL: Set the helperContext that this instance is associated with.voidsetLoader(SDOClassLoader loader)INTERNAL:voidsetTimeZone(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:
-
-
-
Method Detail
-
serialize
void serialize(XMLDocument xmlDocument, OutputStream outputStream, Object options) throws IOException
- Throws:
IOException
-
setTimeZone
void setTimeZone(TimeZone timeZone)
The specified TimeZone will be used for all String to date object conversions. By default the TimeZone from the JVM is used.
-
setTimeZoneQualified
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.
-
load
XMLDocument load(InputSource inputSource, String locationURI, Object options) throws IOException
INTERNAL:- Parameters:
inputSource-locationURI-options-- Returns:
- Throws:
IOException
-
setLoader
void setLoader(SDOClassLoader loader)
INTERNAL:- Parameters:
loader-
-
getLoader
SDOClassLoader getLoader()
INTERNAL:- Returns:
-
setXmlContext
void setXmlContext(org.eclipse.persistence.oxm.XMLContext xmlContext)
INTERNAL:- Parameters:
xmlContext-
-
getXmlContext
org.eclipse.persistence.oxm.XMLContext getXmlContext()
INTERNAL:- Returns:
-
addDescriptors
void addDescriptors(List descriptors)
INTERNAL:- Parameters:
descriptors-
-
setTopLinkProject
void setTopLinkProject(org.eclipse.persistence.sessions.Project toplinkProject)
INTERNAL:- Parameters:
toplinkProject-
-
getTopLinkProject
org.eclipse.persistence.sessions.Project getTopLinkProject()
INTERNAL:- Returns:
-
setXmlMarshaller
void setXmlMarshaller(org.eclipse.persistence.oxm.XMLMarshaller xmlMarshaller)
INTERNAL:- Parameters:
xmlMarshaller-
-
getXmlMarshaller
org.eclipse.persistence.oxm.XMLMarshaller getXmlMarshaller()
INTERNAL:- Returns:
-
setXmlUnmarshaller
void setXmlUnmarshaller(org.eclipse.persistence.oxm.XMLUnmarshaller xmlUnmarshaller)
INTERNAL:- Parameters:
xmlUnmarshaller-
-
getXmlUnmarshaller
org.eclipse.persistence.oxm.XMLUnmarshaller getXmlUnmarshaller()
INTERNAL:- Returns:
-
getHelperContext
HelperContext getHelperContext()
INTERNAL: Return the helperContext that this instance is associated with.- Returns:
-
setHelperContext
void setHelperContext(HelperContext helperContext)
INTERNAL: Set the helperContext that this instance is associated with.- Parameters:
helperContext-
-
reset
void reset()
INTERNAL:
-
initializeDescriptor
void initializeDescriptor(org.eclipse.persistence.oxm.XMLDescriptor descriptor)
-
getXmlConversionManager
org.eclipse.persistence.internal.oxm.XMLConversionManager getXmlConversionManager()
INTERNAL:
-
-