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,org.xml.sax.ContentHandler,org.xml.sax.ext.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 voidexecuteEvents(UnmarshalRecord unmarshalRecord)UnmarshalRecordgetWorkingUnmarshalRecord()booleanisFinished()voidprocessComplexElement()voidprocessEmptyElement()voidprocessSimpleElement()-
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 org.xml.sax.SAXException- Specified by:
processComplexElementin classDeferredContentHandler- Throws:
org.xml.sax.SAXException
-
processSimpleElement
public void processSimpleElement() throws org.xml.sax.SAXException- Specified by:
processSimpleElementin classDeferredContentHandler- Throws:
org.xml.sax.SAXException
-
processEmptyElement
public void processEmptyElement() throws org.xml.sax.SAXException- Specified by:
processEmptyElementin classDeferredContentHandler- Throws:
org.xml.sax.SAXException
-
executeEvents
protected void executeEvents(UnmarshalRecord unmarshalRecord) throws org.xml.sax.SAXException
- Overrides:
executeEventsin classDeferredContentHandler- Throws:
org.xml.sax.SAXException
-
getWorkingUnmarshalRecord
public UnmarshalRecord getWorkingUnmarshalRecord()
-
isFinished
public boolean isFinished()
-
-