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
ConstructorsConstructorDescriptionDOMUnmarshaller(XMLUnmarshaller xmlUnmarshaller, Map<String, Boolean> parserFeatures) -
Method Summary
Modifier and TypeMethodDescriptionintbooleanfinal booleanvoidfinal voidsetDisableSecureProcessing(boolean disableSecureProcessing) voidsetEntityResolver(EntityResolver entityResolver) voidsetErrorHandler(ErrorHandler errorHandler) voidsetResultAlwaysXMLRoot(boolean alwaysReturnRoot) voidvoidsetSchemas(Object[] schemas) voidsetValidationMode(int validationMode) voidsetWhitespacePreserving(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:
getEntityResolverin interfacePlatformUnmarshaller
-
setEntityResolver
- Specified by:
setEntityResolverin interfacePlatformUnmarshaller
-
getErrorHandler
- Specified by:
getErrorHandlerin interfacePlatformUnmarshaller
-
setErrorHandler
- Specified by:
setErrorHandlerin interfacePlatformUnmarshaller
-
getValidationMode
public int getValidationMode()- Specified by:
getValidationModein interfacePlatformUnmarshaller
-
setValidationMode
public void setValidationMode(int validationMode) - Specified by:
setValidationModein interfacePlatformUnmarshaller
-
setWhitespacePreserving
public void setWhitespacePreserving(boolean isWhitespacePreserving) - Specified by:
setWhitespacePreservingin interfacePlatformUnmarshaller
-
setSchemas
- Specified by:
setSchemasin interfacePlatformUnmarshaller
-
setSchema
- Specified by:
setSchemain interfacePlatformUnmarshaller
-
getSchema
- Specified by:
getSchemain interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshalin 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:
isResultAlwaysXMLRootin interfacePlatformUnmarshaller
-
setResultAlwaysXMLRoot
public void setResultAlwaysXMLRoot(boolean alwaysReturnRoot) - Specified by:
setResultAlwaysXMLRootin interfacePlatformUnmarshaller
-
mediaTypeChanged
public void mediaTypeChanged()- Specified by:
mediaTypeChangedin interfacePlatformUnmarshaller
-
isSecureProcessingDisabled
public final boolean isSecureProcessingDisabled()- Specified by:
isSecureProcessingDisabledin interfacePlatformUnmarshaller
-
setDisableSecureProcessing
public final void setDisableSecureProcessing(boolean disableSecureProcessing) - Specified by:
setDisableSecureProcessingin interfacePlatformUnmarshaller
-