BloombergLP::balxml::Decoder_NillableContext

COMPONENT-PRIVATE CLASS. DO NOT USE OUTSIDE OF THIS COMPONENT.

Synopsis

Declared in <balxml_decoder.h>

class Decoder_NillableContext
    : public Decoder_ElementContext

Description

Context for elements that have bdlat_FormattingMode::e_NILLABLE. It acts as a proxy and forwards all callbacks to the held d_elementContext_p. If endElement is called directly after startElement, then the isNil() accessor will return true.

Base Classes

NameDescription
Decoder_ElementContextCOMPONENT-PRIVATE CLASS. DO NOT USE OUTSIDE OF THIS COMPONENT.

Member Functions

NameDescription
Decoder_NillableContext [constructor]Create a nillable-element parsing context.
~Decoder_NillableContext [destructor] [virtual]Destroy this object.
addCharacters [virtual]Process the specified character data while decoding.
beginParse Invoked when the decoder begins parsing.
endElement [virtual]Invoked when the decoder finishes parsing an element.
isNil Return true if the element is nil.
parseAttribute [virtual]Invoked when the decoder encounters an attribute.
parseSubElement [virtual]Invoked when the decoder encounters a sub-element.
setElementContext Set the element context to the specified elementContext.
startElement [virtual]Invoked when the decoder begins parsing an element.