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

Name

Description

Decoder_ElementContext

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

Member Functions

Name

Description

Decoder_NillableContext [constructor]

Create a nillable‐element parsing context.

~Decoder_NillableContext [destructor] [virtual]

Destroy this parsing context.

addCharacters [virtual]

Process the specified character data while decoding. Return 0 on success, and a non‐zero value otherwise.

beginParse

Invoked when the decoder begins parsing. Return 0 on success, and a non‐zero value otherwise.

endElement [virtual]

Invoked when the decoder finishes parsing an element. Return 0 on success, and a non‐zero value otherwise.

isNil

Return true if the element is nil.

parseAttribute [virtual]

Invoked when the decoder encounters an attribute. Return 0 on success, and a non‐zero value otherwise.

parseSubElement [virtual]

Invoked when the decoder encounters a sub‐element. Return 0 on success, and a non‐zero value otherwise.

setElementContext

Set the element context to the specified elementContext. The behavior of all methods in this class are undefined if this method has not been called.

startElement [virtual]

Invoked when the decoder begins parsing an element. Return 0 on success, and a non‐zero value otherwise.

Created with MrDocs