Class DOMUnmarshaller
- java.lang.Object
-
- org.eclipse.persistence.internal.oxm.record.DOMUnmarshaller
-
- All Implemented Interfaces:
PlatformUnmarshaller
public class DOMUnmarshaller extends Object implements 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
- Author:
- bdoughan
- See Also:
DOMPlatform
-
-
Constructor Summary
Constructors Constructor Description DOMUnmarshaller(XMLUnmarshaller xmlUnmarshaller, Map<String,Boolean> parserFeatures)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EntityResolver
getEntityResolver()
ErrorHandler
getErrorHandler()
Schema
getSchema()
int
getValidationMode()
boolean
isResultAlwaysXMLRoot()
boolean
isSecureProcessingDisabled()
void
mediaTypeChanged()
void
setDisableSecureProcessing(boolean disableSecureProcessing)
void
setEntityResolver(EntityResolver entityResolver)
void
setErrorHandler(ErrorHandler errorHandler)
void
setResultAlwaysXMLRoot(boolean alwaysReturnRoot)
void
setSchema(Schema schema)
void
setSchemas(Object[] schemas)
void
setValidationMode(int validationMode)
void
setWhitespacePreserving(boolean isWhitespacePreserving)
Object
unmarshal(File file)
Object
unmarshal(File file, Class clazz)
Object
unmarshal(InputStream inputStream)
Object
unmarshal(InputStream inputStream, Class clazz)
Object
unmarshal(Reader reader)
Object
unmarshal(Reader reader, Class clazz)
Object
unmarshal(URL url)
Object
unmarshal(URL url, Class clazz)
Object
unmarshal(Source source)
Object
unmarshal(Source source, Class clazz)
Object
unmarshal(Node node)
Object
unmarshal(Node node, Class clazz)
Object
unmarshal(InputSource inputSource)
Object
unmarshal(InputSource inputSource, Class clazz)
Object
unmarshal(XMLReader xmlReader, InputSource inputSource)
Object
unmarshal(XMLReader xmlReader, InputSource inputSource, Class clazz)
Object
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.Object
xmlToObject(DOMRecord xmlRow, Class referenceClass)
INTERNAL: Convert the Oracle XMLDocument to the reference-class.
-
-
-
Constructor Detail
-
DOMUnmarshaller
public DOMUnmarshaller(XMLUnmarshaller xmlUnmarshaller, Map<String,Boolean> parserFeatures)
-
-
Method Detail
-
getEntityResolver
public EntityResolver getEntityResolver()
- Specified by:
getEntityResolver
in interfacePlatformUnmarshaller
-
setEntityResolver
public void setEntityResolver(EntityResolver entityResolver)
- Specified by:
setEntityResolver
in interfacePlatformUnmarshaller
-
getErrorHandler
public ErrorHandler getErrorHandler()
- Specified by:
getErrorHandler
in interfacePlatformUnmarshaller
-
setErrorHandler
public void setErrorHandler(ErrorHandler errorHandler)
- 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
public void setSchemas(Object[] schemas)
- Specified by:
setSchemas
in interfacePlatformUnmarshaller
-
setSchema
public void setSchema(Schema schema)
- Specified by:
setSchema
in interfacePlatformUnmarshaller
-
getSchema
public Schema getSchema()
- Specified by:
getSchema
in interfacePlatformUnmarshaller
-
unmarshal
public Object unmarshal(File file)
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
public Object unmarshal(File file, Class clazz)
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
public Object unmarshal(InputStream inputStream)
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
public Object unmarshal(InputStream inputStream, Class clazz)
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
public Object unmarshal(InputSource inputSource)
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
public Object unmarshal(InputSource inputSource, Class clazz)
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
public Object unmarshal(Node node)
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
public Object unmarshal(Node node, Class clazz)
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
public Object unmarshal(Reader reader)
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
public Object unmarshal(Reader reader, Class clazz)
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
public Object unmarshal(Source source)
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
public Object unmarshal(Source source, Class clazz)
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
public Object unmarshal(URL url)
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
public Object unmarshal(URL url, Class clazz)
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
public Object unmarshal(XMLReader xmlReader, InputSource inputSource)
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
public Object unmarshal(XMLReader xmlReader, InputSource inputSource, Class clazz)
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
xmlToObject
public Object xmlToObject(DOMRecord xmlRecord) throws XMLMarshalException
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
public Object xmlToObject(DOMRecord xmlRow, Class referenceClass) throws XMLMarshalException
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
-
-