Module org.eclipse.persistence.core
Class CompositeObjectMappingContentHandler
java.lang.Object
org.eclipse.persistence.internal.oxm.record.deferred.DeferredContentHandler
org.eclipse.persistence.internal.oxm.record.deferred.CompositeMappingContentHandler
org.eclipse.persistence.internal.oxm.record.deferred.CompositeObjectMappingContentHandler
- All Implemented Interfaces:
ExtendedContentHandler
,ContentHandler
,LexicalHandler
INTERNAL:
Purpose: An implementation of DeferredContentHandler used to queue events to enable state-specific behavior for simple, complex or empty elements.
Responsibilities:
- Null Composite Objects are marshalled in 2 ways when the input XML node is empty. (1) as null - isNullRepresentedByEmptyNode = true (2) as empty object - isNullRepresentedByEmptyNode = false A deferred contentHandler is used to queue events until we are able to determine whether we are in one of empty/simple/complex state. Control is returned to the UnmarshalHandler after creation of (1) or (2) above is started.
-
Field Summary
Fields inherited from class org.eclipse.persistence.internal.oxm.record.deferred.CompositeMappingContentHandler
attributes, mapping, nullPolicy, xmlDescriptor, xPathFragment
-
Constructor Summary
ConstructorDescriptionCompositeObjectMappingContentHandler
(UnmarshalRecord parentRecord, XMLCompositeObjectMappingNodeValue aNodeValue, CompositeObjectMapping aMapping, Attributes atts, XPathFragment aFragment, Descriptor aDescriptor) -
Method Summary
Methods inherited from class org.eclipse.persistence.internal.oxm.record.deferred.CompositeMappingContentHandler
createEmptyObject, processComplexElement, processEmptyElementWithAttributes, processSimpleElement
Methods inherited from class org.eclipse.persistence.internal.oxm.record.deferred.DeferredContentHandler
buildAttributeList, characters, characters, comment, endCDATA, endDocument, endDTD, endElement, endEntity, endPrefixMapping, executeEvents, getEvents, getParent, ignorableWhitespace, processingInstruction, setDocumentLocator, setNil, skippedEntity, startCDATA, startDocument, startDTD, startElement, startEntity, startPrefixMapping
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
CompositeObjectMappingContentHandler
public CompositeObjectMappingContentHandler(UnmarshalRecord parentRecord, XMLCompositeObjectMappingNodeValue aNodeValue, CompositeObjectMapping aMapping, Attributes atts, XPathFragment aFragment, Descriptor aDescriptor)
-
-
Method Details
-
getNodeValue
- Specified by:
getNodeValue
in classCompositeMappingContentHandler
-
processEmptyElement
- Specified by:
processEmptyElement
in classDeferredContentHandler
- Throws:
SAXException
-