Class BinaryMappingContentHandler
- java.lang.Object
-
- org.eclipse.persistence.internal.oxm.record.deferred.DeferredContentHandler
-
- org.eclipse.persistence.internal.oxm.record.deferred.BinaryMappingContentHandler
-
- All Implemented Interfaces:
ExtendedContentHandler
,ContentHandler
,LexicalHandler
public class BinaryMappingContentHandler extends DeferredContentHandler
Purpose: Implementation of DeferredContentHandler for Binary Mappings.
Responsibilities:
- If the element is empty then execute stored events and return control to the original parentRecord
- If the element has simple content execute stored events on an inline binary handler
- If the element has complex content execute stored events on a binary attachment handler
-
-
Constructor Summary
Constructors Constructor Description BinaryMappingContentHandler(UnmarshalRecord parentRecord, NodeValue nodeValue, BinaryDataCollectionMapping mapping)
BinaryMappingContentHandler(UnmarshalRecord parentRecord, NodeValue nodeValue, BinaryDataMapping mapping)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
executeEvents(UnmarshalRecord unmarshalRecord)
UnmarshalRecord
getWorkingUnmarshalRecord()
boolean
isFinished()
void
processComplexElement()
void
processEmptyElement()
void
processSimpleElement()
-
Methods inherited from class org.eclipse.persistence.internal.oxm.record.deferred.DeferredContentHandler
buildAttributeList, characters, characters, comment, endCDATA, endDocument, endDTD, endElement, endEntity, endPrefixMapping, getEvents, getParent, ignorableWhitespace, processEmptyElementWithAttributes, processingInstruction, setDocumentLocator, setNil, skippedEntity, startCDATA, startDocument, startDTD, startElement, startEntity, startPrefixMapping
-
-
-
-
Constructor Detail
-
BinaryMappingContentHandler
public BinaryMappingContentHandler(UnmarshalRecord parentRecord, NodeValue nodeValue, BinaryDataMapping mapping)
-
BinaryMappingContentHandler
public BinaryMappingContentHandler(UnmarshalRecord parentRecord, NodeValue nodeValue, BinaryDataCollectionMapping mapping)
-
-
Method Detail
-
processComplexElement
public void processComplexElement() throws SAXException
- Specified by:
processComplexElement
in classDeferredContentHandler
- Throws:
SAXException
-
processSimpleElement
public void processSimpleElement() throws SAXException
- Specified by:
processSimpleElement
in classDeferredContentHandler
- Throws:
SAXException
-
processEmptyElement
public void processEmptyElement() throws SAXException
- Specified by:
processEmptyElement
in classDeferredContentHandler
- Throws:
SAXException
-
executeEvents
protected void executeEvents(UnmarshalRecord unmarshalRecord) throws SAXException
- Overrides:
executeEvents
in classDeferredContentHandler
- Throws:
SAXException
-
getWorkingUnmarshalRecord
public UnmarshalRecord getWorkingUnmarshalRecord()
-
isFinished
public boolean isFinished()
-
-