Module org.eclipse.persistence.core
Interface UnmarshalRecord<ABSTRACT_SESSION extends CoreAbstractSession,FIELD extends CoreField,ID_RESOLVER extends IDResolver,OBJECT_BUILDER extends ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,UNMARSHALLER extends Unmarshaller>
- All Superinterfaces:
AbstractUnmarshalRecord<ABSTRACT_SESSION,
,FIELD, UNMARSHALLER> ContentHandler
,ExtendedContentHandler
,LexicalHandler
,XMLRecord<ABSTRACT_SESSION>
- All Known Implementing Classes:
BinaryDataUnmarshalRecord
,UnmappedContentHandlerWrapper
,UnmarshalRecord
,UnmarshalRecordImpl
,XMLBinaryAttachmentHandler
,XMLInlineBinaryHandler
,XMLRootRecord
public interface UnmarshalRecord<ABSTRACT_SESSION extends CoreAbstractSession,FIELD extends CoreField,ID_RESOLVER extends IDResolver,OBJECT_BUILDER extends ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,UNMARSHALLER extends Unmarshaller>
extends AbstractUnmarshalRecord<ABSTRACT_SESSION,FIELD,UNMARSHALLER>, ExtendedContentHandler, LexicalHandler
This class represents unmarshal record behaviour that is specific to the SAX
platform.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.persistence.internal.oxm.record.XMLRecord
XMLRecord.Nil
-
Field Summary
FieldsFields inherited from interface org.eclipse.persistence.internal.oxm.record.XMLRecord
DEFAULT_ATTRIBUTE_GROUP, NIL
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttributeValue
(ContainerValue containerValue, Object value) void
addAttributeValue
(ContainerValue containerValue, Object value, Object collection) void
endUnmappedElement
(String uri, String localName, String name) getAttributeChildNodeValue
(String namespace, String localName) getChildUnmarshalRecord
(OBJECT_BUILDER targetObjectBuilder) getContainerInstance
(ContainerValue containerValue) getContainerInstance
(ContainerValue containerValue, boolean b) Gets the encoding for this document.int
getNonAttributeXPathNode
(String namespaceURI, String localName, String qName, Attributes attributes) Gets the XML Version for this document.initialize
(OBJECT_BUILDER objectBuilder) void
initializeRecord
(Mapping mapping) boolean
boolean
isNil()
boolean
void
void
removeNullCapableValue
(NullCapableValue nullCapableValue) void
resolveNamespaceUri
(String namespaceURI) void
resolveReferences
(ABSTRACT_SESSION session, ID_RESOLVER idResolver) void
setAttributes
(Attributes atts) void
setAttributeValue
(Object object, Mapping mapping) void
setAttributeValueNull
(ContainerValue containerValue) void
setChildRecord
(UnmarshalRecord unmarshalRecord) void
setContainerInstance
(int index, Object containerInstance) void
setCurrentObject
(Object object) void
setFragmentBuilder
(SAXFragmentBuilder fragmentBuilder) void
setLeafElementType
(QName leafElementType) void
setLocalName
(String localName) void
setNil
(boolean isNil) This method can be used to track that the current element is nilvoid
setParentRecord
(UnmarshalRecord unmarshalRecord) void
setReferenceResolver
(ReferenceResolver referenceResolver) void
setRootElementName
(String rootElementName) void
setRootElementNamespaceUri
(String rootElementNamespaceUri) void
setSelfRecord
(boolean isSelfRecord) void
setSession
(ABSTRACT_SESSION session) void
setTextWrapperFragment
(XPathFragment textWrapperFragment) void
setTransformationRecord
(TRANSFORMATION_RECORD transformationRecord) void
setTypeQName
(QName qname) void
void
setUnmarshalContext
(UnmarshalContext unmarshalContext) void
setUnmarshaller
(UNMARSHALLER unmarshaller) void
setUnmarshalNamespaceResolver
(UnmarshalNamespaceResolver unmarshalNamespaceResolver) void
setXMLReader
(XMLReader xmlReader) void
Methods inherited from interface org.eclipse.persistence.internal.oxm.record.AbstractUnmarshalRecord
get, resolveNamespacePrefix
Methods inherited from interface org.xml.sax.ContentHandler
characters, declaration, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping
Methods inherited from interface org.eclipse.persistence.internal.oxm.record.ExtendedContentHandler
characters
Methods inherited from interface org.xml.sax.ext.LexicalHandler
comment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntity
Methods inherited from interface org.eclipse.persistence.internal.oxm.record.XMLRecord
getConversionManager, getNamespaceSeparator, getSession, isNamespaceAware
-
Field Details
-
DEFAULT_UNMAPPED_CONTENT_HANDLER
-
-
Method Details
-
addAttributeValue
-
addAttributeValue
-
createRoot
Root createRoot() -
endUnmappedElement
- Throws:
SAXException
-
getAttributeChildNodeValue
-
getAttributes
Attributes getAttributes() -
getCharacters
CharSequence getCharacters() -
getChildRecord
UnmarshalRecord getChildRecord() -
getChildUnmarshalRecord
-
getContainerInstance
-
getContainerInstance
-
getCurrentObject
Object getCurrentObject() -
getDescriptor
Descriptor getDescriptor() -
getEncoding
String getEncoding()Gets the encoding for this document. Only set on the root-level UnmarshalRecord- Returns:
- a String representing the encoding for this doc
-
getFragmentBuilder
SAXFragmentBuilder getFragmentBuilder() -
getLeafElementType
XPathQName getLeafElementType() -
getLevelIndex
int getLevelIndex() -
getLocalName
String getLocalName() -
getNoNamespaceSchemaLocation
String getNoNamespaceSchemaLocation() -
getNonAttributeXPathNode
XPathNode getNonAttributeXPathNode(String namespaceURI, String localName, String qName, Attributes attributes) -
getNullCapableValues
List<NullCapableValue> getNullCapableValues() -
getParentRecord
UnmarshalRecord getParentRecord() -
getPrefixesForFragment
-
getReferenceResolver
ReferenceResolver getReferenceResolver() -
getRootElementName
String getRootElementName() -
getRootElementNamespaceUri
String getRootElementNamespaceUri() -
getSchemaLocation
String getSchemaLocation() -
getTextWrapperFragment
XPathFragment getTextWrapperFragment() -
getTransformationRecord
TRANSFORMATION_RECORD getTransformationRecord() -
getTypeQName
QName getTypeQName() -
getUnmarshalContext
UnmarshalContext getUnmarshalContext() -
getUnmarshaller
UNMARSHALLER getUnmarshaller()- Specified by:
getUnmarshaller
in interfaceAbstractUnmarshalRecord<ABSTRACT_SESSION extends CoreAbstractSession,
FIELD extends CoreField, ID_RESOLVER extends IDResolver>
-
getUnmarshalNamespaceResolver
UnmarshalNamespaceResolver getUnmarshalNamespaceResolver() -
getVersion
String getVersion()Gets the XML Version for this document. Only set on the root-level UnmarshalRecord, if supported by the parser. -
getXMLReader
XMLReader getXMLReader() -
getXPathNode
XPathNode getXPathNode() -
initialize
-
initializeRecord
- Throws:
SAXException
-
isBufferCDATA
boolean isBufferCDATA() -
isNil
boolean isNil() -
isSelfRecord
boolean isSelfRecord() -
reference
-
removeNullCapableValue
-
resetStringBuffer
void resetStringBuffer() -
resolveNamespaceUri
-
resolveReferences
-
setAttributes
-
setAttributeValue
-
setAttributeValueNull
-
setChildRecord
-
setContainerInstance
-
setCurrentObject
-
setFragmentBuilder
-
setLeafElementType
-
setLocalName
-
setNil
void setNil(boolean isNil) Description copied from interface:ExtendedContentHandler
This method can be used to track that the current element is nil- Specified by:
setNil
in interfaceExtendedContentHandler
-
setParentRecord
-
setReferenceResolver
-
setRootElementName
-
setRootElementNamespaceUri
-
setSelfRecord
void setSelfRecord(boolean isSelfRecord) -
setSession
-
setTextWrapperFragment
-
setTransformationRecord
-
setTypeQName
-
setUnmarshalContext
-
setUnmarshaller
-
setUnmarshalNamespaceResolver
-
setXMLReader
-
unmappedContent
void unmappedContent() -
getUnmarshalAttributeGroup
CoreAttributeGroup getUnmarshalAttributeGroup() -
setUnmarshalAttributeGroup
-