Class 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.