Module org.eclipse.persistence.sdo
Interface SDOXMLHelper
- All Superinterfaces:
XMLHelper
- All Known Implementing Classes:
JAXBXMLHelper
,SDOXMLHelperDelegate
,SDOXMLHelperDelegator
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)
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDescriptors
(List descriptors) INTERNAL:INTERNAL: Return the helperContext that this instance is associated with.INTERNAL:INTERNAL:INTERNAL:INTERNAL:INTERNAL:INTERNAL:void
initializeDescriptor
(XMLDescriptor descriptor) load
(InputSource inputSource, String locationURI, Object options) INTERNAL:void
reset()
INTERNAL:void
serialize
(XMLDocument xmlDocument, OutputStream outputStream, Object options) void
setHelperContext
(HelperContext helperContext) INTERNAL: Set the helperContext that this instance is associated with.void
setLoader
(SDOClassLoader loader) INTERNAL:void
setTimeZone
(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:
-
Method Details
-
serialize
void serialize(XMLDocument xmlDocument, OutputStream outputStream, Object options) throws IOException - Throws:
IOException
-
setTimeZone
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
INTERNAL:- Parameters:
inputSource
-locationURI
-options
-- Returns:
- Throws:
IOException
-
setLoader
INTERNAL:- Parameters:
loader
-
-
getLoader
SDOClassLoader getLoader()INTERNAL:- Returns:
-
setXmlContext
INTERNAL:- Parameters:
xmlContext
-
-
getXmlContext
XMLContext getXmlContext()INTERNAL:- Returns:
-
addDescriptors
INTERNAL:- Parameters:
descriptors
-
-
setTopLinkProject
INTERNAL:- Parameters:
toplinkProject
-
-
getTopLinkProject
Project getTopLinkProject()INTERNAL:- Returns:
-
setXmlMarshaller
INTERNAL:- Parameters:
xmlMarshaller
-
-
getXmlMarshaller
XMLMarshaller getXmlMarshaller()INTERNAL:- Returns:
-
setXmlUnmarshaller
INTERNAL:- Parameters:
xmlUnmarshaller
-
-
getXmlUnmarshaller
XMLUnmarshaller getXmlUnmarshaller()INTERNAL:- Returns:
-
getHelperContext
HelperContext getHelperContext()INTERNAL: Return the helperContext that this instance is associated with.- Returns:
-
setHelperContext
INTERNAL: Set the helperContext that this instance is associated with.- Parameters:
helperContext
-
-
reset
void reset()INTERNAL: -
initializeDescriptor
-
getXmlConversionManager
XMLConversionManager getXmlConversionManager()INTERNAL:
-