Class DOMUnmarshaller
- java.lang.Object
-
- org.eclipse.persistence.internal.oxm.record.DOMUnmarshaller
-
- All Implemented Interfaces:
PlatformUnmarshaller
public class DOMUnmarshaller extends java.lang.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, java.util.Map<java.lang.String,java.lang.Boolean> parserFeatures)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.xml.sax.EntityResolvergetEntityResolver()org.xml.sax.ErrorHandlergetErrorHandler()javax.xml.validation.SchemagetSchema()intgetValidationMode()booleanisResultAlwaysXMLRoot()booleanisSecureProcessingDisabled()voidmediaTypeChanged()voidsetDisableSecureProcessing(boolean disableSecureProcessing)voidsetEntityResolver(org.xml.sax.EntityResolver entityResolver)voidsetErrorHandler(org.xml.sax.ErrorHandler errorHandler)voidsetResultAlwaysXMLRoot(boolean alwaysReturnRoot)voidsetSchema(javax.xml.validation.Schema schema)voidsetSchemas(java.lang.Object[] schemas)voidsetValidationMode(int validationMode)voidsetWhitespacePreserving(boolean isWhitespacePreserving)java.lang.Objectunmarshal(java.io.File file)java.lang.Objectunmarshal(java.io.File file, java.lang.Class clazz)java.lang.Objectunmarshal(java.io.InputStream inputStream)java.lang.Objectunmarshal(java.io.InputStream inputStream, java.lang.Class clazz)java.lang.Objectunmarshal(java.io.Reader reader)java.lang.Objectunmarshal(java.io.Reader reader, java.lang.Class clazz)java.lang.Objectunmarshal(java.net.URL url)java.lang.Objectunmarshal(java.net.URL url, java.lang.Class clazz)java.lang.Objectunmarshal(javax.xml.transform.Source source)java.lang.Objectunmarshal(javax.xml.transform.Source source, java.lang.Class clazz)java.lang.Objectunmarshal(org.w3c.dom.Node node)java.lang.Objectunmarshal(org.w3c.dom.Node node, java.lang.Class clazz)java.lang.Objectunmarshal(org.xml.sax.InputSource inputSource)java.lang.Objectunmarshal(org.xml.sax.InputSource inputSource, java.lang.Class clazz)java.lang.Objectunmarshal(org.xml.sax.XMLReader xmlReader, org.xml.sax.InputSource inputSource)java.lang.Objectunmarshal(org.xml.sax.XMLReader xmlReader, org.xml.sax.InputSource inputSource, java.lang.Class clazz)java.lang.ObjectxmlToObject(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.java.lang.ObjectxmlToObject(DOMRecord xmlRow, java.lang.Class referenceClass)INTERNAL: Convert the Oracle XMLDocument to the reference-class.
-
-
-
Constructor Detail
-
DOMUnmarshaller
public DOMUnmarshaller(XMLUnmarshaller xmlUnmarshaller, java.util.Map<java.lang.String,java.lang.Boolean> parserFeatures)
-
-
Method Detail
-
getEntityResolver
public org.xml.sax.EntityResolver getEntityResolver()
- Specified by:
getEntityResolverin interfacePlatformUnmarshaller
-
setEntityResolver
public void setEntityResolver(org.xml.sax.EntityResolver entityResolver)
- Specified by:
setEntityResolverin interfacePlatformUnmarshaller
-
getErrorHandler
public org.xml.sax.ErrorHandler getErrorHandler()
- Specified by:
getErrorHandlerin interfacePlatformUnmarshaller
-
setErrorHandler
public void setErrorHandler(org.xml.sax.ErrorHandler errorHandler)
- 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
public void setSchemas(java.lang.Object[] schemas)
- Specified by:
setSchemasin interfacePlatformUnmarshaller
-
setSchema
public void setSchema(javax.xml.validation.Schema schema)
- Specified by:
setSchemain interfacePlatformUnmarshaller
-
getSchema
public javax.xml.validation.Schema getSchema()
- Specified by:
getSchemain interfacePlatformUnmarshaller
-
unmarshal
public java.lang.Object unmarshal(java.io.File file)
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
public java.lang.Object unmarshal(java.io.File file, java.lang.Class clazz)- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
public java.lang.Object unmarshal(java.io.InputStream inputStream)
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
public java.lang.Object unmarshal(java.io.InputStream inputStream, java.lang.Class clazz)- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
public java.lang.Object unmarshal(org.xml.sax.InputSource inputSource)
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
public java.lang.Object unmarshal(org.xml.sax.InputSource inputSource, java.lang.Class clazz)- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
public java.lang.Object unmarshal(org.w3c.dom.Node node)
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
public java.lang.Object unmarshal(org.w3c.dom.Node node, java.lang.Class clazz)- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
public java.lang.Object unmarshal(java.io.Reader reader)
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
public java.lang.Object unmarshal(java.io.Reader reader, java.lang.Class clazz)- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
public java.lang.Object unmarshal(javax.xml.transform.Source source)
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
public java.lang.Object unmarshal(javax.xml.transform.Source source, java.lang.Class clazz)- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
public java.lang.Object unmarshal(java.net.URL url)
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
public java.lang.Object unmarshal(java.net.URL url, java.lang.Class clazz)- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
public java.lang.Object unmarshal(org.xml.sax.XMLReader xmlReader, org.xml.sax.InputSource inputSource)- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
public java.lang.Object unmarshal(org.xml.sax.XMLReader xmlReader, org.xml.sax.InputSource inputSource, java.lang.Class clazz)- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
xmlToObject
public java.lang.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 java.lang.Object xmlToObject(DOMRecord xmlRow, java.lang.Class referenceClass) throws XMLMarshalException
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
-
-