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
public class CompositeObjectMappingContentHandler extends CompositeMappingContentHandler
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
Constructors Constructor Description CompositeObjectMappingContentHandler(UnmarshalRecord parentRecord, XMLCompositeObjectMappingNodeValue aNodeValue, CompositeObjectMapping aMapping, Attributes atts, XPathFragment aFragment, Descriptor aDescriptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected XMLCompositeObjectMappingNodeValue
getNodeValue()
protected void
processEmptyElement()
-
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
-
-
-
-
Constructor Detail
-
CompositeObjectMappingContentHandler
public CompositeObjectMappingContentHandler(UnmarshalRecord parentRecord, XMLCompositeObjectMappingNodeValue aNodeValue, CompositeObjectMapping aMapping, Attributes atts, XPathFragment aFragment, Descriptor aDescriptor)
-
-
Method Detail
-
getNodeValue
protected XMLCompositeObjectMappingNodeValue getNodeValue()
- Specified by:
getNodeValue
in classCompositeMappingContentHandler
-
processEmptyElement
protected void processEmptyElement() throws SAXException
- Specified by:
processEmptyElement
in classDeferredContentHandler
- Throws:
SAXException
-
-