Module org.eclipse.persistence.core
Class DOMUnmarshaller
java.lang.Object
org.eclipse.persistence.internal.oxm.record.DOMUnmarshaller
- All Implemented Interfaces:
PlatformUnmarshaller
INTERNAL:
Purpose:Provide an implementation of PlatformUnmarshaller that makes use of the DOM unmarshal code. Used by the DOMPlatform
Responsibilities:
- Implement the required unmarshal methods from platform unmarshaller
- Perform xml-to-object conversions
- See Also:
-
Constructor Summary
ConstructorDescriptionDOMUnmarshaller
(XMLUnmarshaller xmlUnmarshaller, Map<String, Boolean> parserFeatures) -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
final boolean
void
final void
setDisableSecureProcessing
(boolean disableSecureProcessing) void
setEntityResolver
(EntityResolver entityResolver) void
setErrorHandler
(ErrorHandler errorHandler) void
setResultAlwaysXMLRoot
(boolean alwaysReturnRoot) void
void
setSchemas
(Object[] schemas) void
setValidationMode
(int validationMode) void
setWhitespacePreserving
(boolean isWhitespacePreserving) unmarshal
(InputStream inputStream) unmarshal
(InputStream inputStream, Class<?> clazz) unmarshal
(InputSource inputSource) unmarshal
(InputSource inputSource, Class<?> clazz) unmarshal
(XMLReader xmlReader, InputSource inputSource) unmarshal
(XMLReader xmlReader, InputSource inputSource, Class<?> clazz) xmlToObject
(DOMRecord xmlRecord) INTERNAL: Find the Descriptor corresponding to the context node of the XMLRecord, and then convert the XMLRecord to an instance of the corresponding object.xmlToObject
(DOMRecord xmlRow, Class<?> referenceClass) INTERNAL: Convert the Oracle XMLDocument to the reference-class.
-
Constructor Details
-
DOMUnmarshaller
-
-
Method Details
-
getEntityResolver
- Specified by:
getEntityResolver
in interfacePlatformUnmarshaller
-
setEntityResolver
- Specified by:
setEntityResolver
in interfacePlatformUnmarshaller
-
getErrorHandler
- Specified by:
getErrorHandler
in interfacePlatformUnmarshaller
-
setErrorHandler
- Specified by:
setErrorHandler
in interfacePlatformUnmarshaller
-
getValidationMode
public int getValidationMode()- Specified by:
getValidationMode
in interfacePlatformUnmarshaller
-
setValidationMode
public void setValidationMode(int validationMode) - Specified by:
setValidationMode
in interfacePlatformUnmarshaller
-
setWhitespacePreserving
public void setWhitespacePreserving(boolean isWhitespacePreserving) - Specified by:
setWhitespacePreserving
in interfacePlatformUnmarshaller
-
setSchemas
- Specified by:
setSchemas
in interfacePlatformUnmarshaller
-
setSchema
- Specified by:
setSchema
in interfacePlatformUnmarshaller
-
getSchema
- Specified by:
getSchema
in interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
xmlToObject
INTERNAL: Find the Descriptor corresponding to the context node of the XMLRecord, and then convert the XMLRecord to an instance of the corresponding object.- Parameters:
xmlRecord
- The XMLRecord to unmarshal from- Returns:
- the object which resulted from unmarshalling the given XMLRecord
- Throws:
XMLMarshalException
- if an error occurred during unmarshalling
-
xmlToObject
INTERNAL: Convert the Oracle XMLDocument to the reference-class.- Throws:
XMLMarshalException
-
isResultAlwaysXMLRoot
public boolean isResultAlwaysXMLRoot()- Specified by:
isResultAlwaysXMLRoot
in interfacePlatformUnmarshaller
-
setResultAlwaysXMLRoot
public void setResultAlwaysXMLRoot(boolean alwaysReturnRoot) - Specified by:
setResultAlwaysXMLRoot
in interfacePlatformUnmarshaller
-
mediaTypeChanged
public void mediaTypeChanged()- Specified by:
mediaTypeChanged
in interfacePlatformUnmarshaller
-
isSecureProcessingDisabled
public final boolean isSecureProcessingDisabled()- Specified by:
isSecureProcessingDisabled
in interfacePlatformUnmarshaller
-
setDisableSecureProcessing
public final void setDisableSecureProcessing(boolean disableSecureProcessing) - Specified by:
setDisableSecureProcessing
in interfacePlatformUnmarshaller
-