Top Description Fields Constructors Methods
org.eclipse.persistence.internal.oxm.record

public Class DOMUnmarshaller

extends Object
implements PlatformUnmarshaller
Class Inheritance
All Implemented Interfaces
org.eclipse.persistence.internal.oxm.record.PlatformUnmarshaller
Imports
java.io.File, .IOException, .InputStream, .Reader, java.net.URL, java.util.HashMap, .Map, javax.xml.namespace.QName, javax.xml.transform.Source, javax.xml.validation.Schema, org.eclipse.persistence.exceptions.XMLMarshalException, org.eclipse.persistence.internal.core.helper.CoreClassConstants, org.eclipse.persistence.internal.core.sessions.CoreAbstractSession, org.eclipse.persistence.internal.oxm.Constants, .Root, .XMLConversionManager, .XMLObjectBuilder, .XPathFragment, org.eclipse.persistence.internal.oxm.mappings.Descriptor, org.eclipse.persistence.internal.sessions.AbstractSession, org.eclipse.persistence.oxm.XMLContext, .XMLRoot, .XMLUnmarshaller, org.eclipse.persistence.oxm.record.DOMRecord, org.eclipse.persistence.platform.xml.SAXDocumentBuilder, .XMLParser, .XMLPlatform, .XMLPlatformException, .XMLPlatformFactory, org.eclipse.persistence.queries.ReadObjectQuery, org.w3c.dom.Document, .Element, .Node, .Text, org.xml.sax.EntityResolver, .ErrorHandler, .InputSource, .SAXException, .XMLReader

INTERNAL:

Purpose:Provide an implementation of PlatformUnmarshaller that makes use of the DOM unmarshal code. Used by the DOMPlatform

Responsibilities:

Author
bdoughan
See Also
org.eclipse.persistence.oxm.platform.DOMPlatform

Field Summary

Modifier and TypeField and Description
private boolean
private EntityResolver
private ErrorHandler
private boolean
private boolean
private XMLParser
private Map<String, Boolean>
private Schema
private Object[]
private boolean
private int
private XMLUnmarshaller

Constructor Summary

AccessConstructor and Description
public
DOMUnmarshaller(XMLUnmarshaller xmlUnmarshaller, Map<String, Boolean> parserFeatures)

Method Summary

Modifier and TypeMethod and Description
public EntityResolver
public ErrorHandler
private XMLParser
public Schema
public int
public boolean
public final boolean
public void
public final void
public void
public void
public void
public void
public void
public void
public void
public Object
public Object
public Object
public Object
public Object
public Object
public Object
public Object
public Object
public Object
public Object
public Object
public Object
public Object
public Object
public Object
public Object

Returns:

the object which resulted from unmarshalling the given XMLRecord
xmlToObject
(DOMRecord
The XMLRecord to unmarshal from
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.

public Object
xmlToObject(DOMRecord xmlRow, Class<?> referenceClass)

INTERNAL: Convert the Oracle XMLDocument to the reference-class.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

disableSecureProcessingback to summary
private boolean disableSecureProcessing
entityResolverback to summary
private EntityResolver entityResolver
errorHandlerback to summary
private ErrorHandler errorHandler
isResultAlwaysXMLRootback to summary
private boolean isResultAlwaysXMLRoot
isWhitespacePreservingback to summary
private boolean isWhitespacePreserving
parserback to summary
private XMLParser parser
parserFeaturesback to summary
private Map<String, Boolean> parserFeatures
schemaback to summary
private Schema schema
schemasback to summary
private Object[] schemas
shouldResetback to summary
private boolean shouldReset
validationModeback to summary
private int validationMode
xmlUnmarshallerback to summary
private XMLUnmarshaller xmlUnmarshaller

Constructor Detail

DOMUnmarshallerback to summary
public DOMUnmarshaller(XMLUnmarshaller xmlUnmarshaller, Map<String, Boolean> parserFeatures)

Method Detail

getEntityResolverback to summary
public EntityResolver getEntityResolver()

Implements org.eclipse.persistence.internal.oxm.record.PlatformUnmarshaller.getEntityResolver.

Annotations
@Override
getErrorHandlerback to summary
public ErrorHandler getErrorHandler()

Implements org.eclipse.persistence.internal.oxm.record.PlatformUnmarshaller.getErrorHandler.

Annotations
@Override
getParserback to summary
private XMLParser getParser()
getSchemaback to summary
public Schema getSchema()

Implements org.eclipse.persistence.internal.oxm.record.PlatformUnmarshaller.getSchema.

Annotations
@Override
getValidationModeback to summary
public int getValidationMode()

Implements org.eclipse.persistence.internal.oxm.record.PlatformUnmarshaller.getValidationMode.

Annotations
@Override
isResultAlwaysXMLRootback to summary
public boolean isResultAlwaysXMLRoot()

Implements org.eclipse.persistence.internal.oxm.record.PlatformUnmarshaller.isResultAlwaysXMLRoot.

Annotations
@Override
isSecureProcessingDisabledback to summary
public final boolean isSecureProcessingDisabled()

Implements org.eclipse.persistence.internal.oxm.record.PlatformUnmarshaller.isSecureProcessingDisabled.

Annotations
@Override
mediaTypeChangedback to summary
public void mediaTypeChanged()

Implements org.eclipse.persistence.internal.oxm.record.PlatformUnmarshaller.mediaTypeChanged.

Annotations
@Override
setDisableSecureProcessingback to summary
public final void setDisableSecureProcessing(boolean disableSecureProcessing)

Implements org.eclipse.persistence.internal.oxm.record.PlatformUnmarshaller.setDisableSecureProcessing.

Annotations
@Override
setEntityResolverback to summary
public void setEntityResolver(EntityResolver entityResolver)

Implements org.eclipse.persistence.internal.oxm.record.PlatformUnmarshaller.setEntityResolver.

Annotations
@Override
setErrorHandlerback to summary
public void setErrorHandler(ErrorHandler errorHandler)

Implements org.eclipse.persistence.internal.oxm.record.PlatformUnmarshaller.setErrorHandler.

Annotations
@Override
setResultAlwaysXMLRootback to summary
public void setResultAlwaysXMLRoot(boolean alwaysReturnRoot)

Implements org.eclipse.persistence.internal.oxm.record.PlatformUnmarshaller.setResultAlwaysXMLRoot.

Annotations
@Override
setSchemaback to summary
public void setSchema(Schema schema)

Implements org.eclipse.persistence.internal.oxm.record.PlatformUnmarshaller.setSchema.

Annotations
@Override
setSchemasback to summary
public void setSchemas(Object[] schemas)

Implements org.eclipse.persistence.internal.oxm.record.PlatformUnmarshaller.setSchemas.

Annotations
@Override
setValidationModeback to summary
public void setValidationMode(int validationMode)

Implements org.eclipse.persistence.internal.oxm.record.PlatformUnmarshaller.setValidationMode.

Annotations
@Override
setWhitespacePreservingback to summary
public void setWhitespacePreserving(boolean isWhitespacePreserving)

Implements org.eclipse.persistence.internal.oxm.record.PlatformUnmarshaller.setWhitespacePreserving.

Annotations
@Override
unmarshalback to summary
public Object unmarshal(File file)

Implements org.eclipse.persistence.internal.oxm.record.PlatformUnmarshaller.unmarshal.

Annotations
@Override
unmarshalback to summary
public Object unmarshal(File file, Class<?> clazz)

Implements org.eclipse.persistence.internal.oxm.record.PlatformUnmarshaller.unmarshal.

Annotations
@Override
unmarshalback to summary
public Object unmarshal(InputStream inputStream)

Implements org.eclipse.persistence.internal.oxm.record.PlatformUnmarshaller.unmarshal.

Annotations
@Override
unmarshalback to summary
public Object unmarshal(InputStream inputStream, Class<?> clazz)

Implements org.eclipse.persistence.internal.oxm.record.PlatformUnmarshaller.unmarshal.

Annotations
@Override
unmarshalback to summary
public Object unmarshal(InputSource inputSource)

Implements org.eclipse.persistence.internal.oxm.record.PlatformUnmarshaller.unmarshal.

Annotations
@Override
unmarshalback to summary
public Object unmarshal(InputSource inputSource, Class<?> clazz)

Implements org.eclipse.persistence.internal.oxm.record.PlatformUnmarshaller.unmarshal.

Annotations
@Override
unmarshalback to summary
public Object unmarshal(Node node)

Implements org.eclipse.persistence.internal.oxm.record.PlatformUnmarshaller.unmarshal.

Annotations
@Override
unmarshalback to summary
public Object unmarshal(Node node, Class<?> clazz)

Implements org.eclipse.persistence.internal.oxm.record.PlatformUnmarshaller.unmarshal.

Annotations
@Override
unmarshalback to summary
public Object unmarshal(Reader reader)

Implements org.eclipse.persistence.internal.oxm.record.PlatformUnmarshaller.unmarshal.

Annotations
@Override
unmarshalback to summary
public Object unmarshal(Reader reader, Class<?> clazz)

Implements org.eclipse.persistence.internal.oxm.record.PlatformUnmarshaller.unmarshal.

Annotations
@Override
unmarshalback to summary
public Object unmarshal(Source source)

Implements org.eclipse.persistence.internal.oxm.record.PlatformUnmarshaller.unmarshal.

Annotations
@Override
unmarshalback to summary
public Object unmarshal(Source source, Class<?> clazz)

Implements org.eclipse.persistence.internal.oxm.record.PlatformUnmarshaller.unmarshal.

Annotations
@Override
unmarshalback to summary
public Object unmarshal(URL url)

Implements org.eclipse.persistence.internal.oxm.record.PlatformUnmarshaller.unmarshal.

Annotations
@Override
unmarshalback to summary
public Object unmarshal(URL url, Class<?> clazz)

Implements org.eclipse.persistence.internal.oxm.record.PlatformUnmarshaller.unmarshal.

Annotations
@Override
unmarshalback to summary
public Object unmarshal(XMLReader xmlReader, InputSource inputSource)

Implements org.eclipse.persistence.internal.oxm.record.PlatformUnmarshaller.unmarshal.

Annotations
@Override
unmarshalback to summary
public Object unmarshal(XMLReader xmlReader, InputSource inputSource, Class<?> clazz)

Implements org.eclipse.persistence.internal.oxm.record.PlatformUnmarshaller.unmarshal.

Annotations
@Override
xmlToObjectback to summary
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:DOMRecord

The XMLRecord to unmarshal from

Returns:Object

the object which resulted from unmarshalling the given XMLRecord

Exceptions
XMLMarshalException:
if an error occurred during unmarshalling
xmlToObjectback to summary
public Object xmlToObject(DOMRecord xmlRow, Class<?> referenceClass) throws XMLMarshalException

INTERNAL: Convert the Oracle XMLDocument to the reference-class.