MarkLogic Connect
MarkLogic Connect Client API Collection
|
Acts as a generic lightweight document element interface. More...
#include <DocumentContent.hpp>
Public Member Functions | |
virtual MLCLIENT_API bool | isNull () const =0 |
Does this document element have a blank value? More... | |
virtual MLCLIENT_API bool | isBoolean () const =0 |
Whether this element or property is a boolean type. More... | |
virtual MLCLIENT_API bool | isInteger () const =0 |
Whether this element or property is a integer type. More... | |
virtual MLCLIENT_API bool | isDouble () const =0 |
Whether this element or property is a double type. More... | |
virtual MLCLIENT_API bool | isString () const =0 |
Whether this element or property is a string type. More... | |
virtual MLCLIENT_API bool | isArray () const =0 |
Whether this element or property is an array type. More... | |
virtual MLCLIENT_API bool | isObject () const =0 |
Whether this element or property is an object type (i.e. a JSON object or an XML element with element content) More... | |
virtual MLCLIENT_API bool | asBoolean () const =0 |
Returns the boolean value of this element or property. More... | |
virtual MLCLIENT_API int32_t | asInteger () const =0 |
Returns the integer value of this element or property. More... | |
virtual MLCLIENT_API double | asDouble () const =0 |
Returns the double value of this element or property. More... | |
virtual MLCLIENT_API std::string | asString () const =0 |
Returns the string value of this element or property. More... | |
virtual MLCLIENT_API IDocumentNode * | asArray () const =0 |
Returns the array value of this element or property (i.e. the child objects) More... | |
virtual MLCLIENT_API IDocumentNode * | asObject () const =0 |
Returns the Object value of this element or property (i.e. the child object) More... | |
virtual MLCLIENT_API IDocumentNode * | at (const std::string &key) const =0 |
virtual MLCLIENT_API IDocumentNode * | at (const int32_t idx) const =0 |
Acts as a generic lightweight document element interface.
This is the base class for any Document Node within the Document Traversal API.
|
pure virtual |
Returns the array value of this element or property (i.e. the child objects)
InvalidFormatException | if not of the right type |
Implemented in mlclient::utilities::CppRestJsonDocumentNode, mlclient::utilities::PugiXmlDocumentNode, mlclient::utilities::CppRestJsonObjectNode, mlclient::utilities::PugiXmlObjectNode, mlclient::utilities::CppRestJsonArrayNode, and mlclient::utilities::PugiXmlArrayNode.
|
pure virtual |
Returns the boolean value of this element or property.
InvalidFormatException | if not of the right type |
Implemented in mlclient::utilities::CppRestJsonDocumentNode, mlclient::utilities::PugiXmlDocumentNode, mlclient::utilities::CppRestJsonContainerNode, and mlclient::utilities::PugiXmlContainerNode.
|
pure virtual |
Returns the double value of this element or property.
InvalidFormatException | if not of the right type |
Implemented in mlclient::utilities::CppRestJsonDocumentNode, mlclient::utilities::PugiXmlDocumentNode, mlclient::utilities::CppRestJsonContainerNode, and mlclient::utilities::PugiXmlContainerNode.
|
pure virtual |
Returns the integer value of this element or property.
InvalidFormatException | if not of the right type |
Implemented in mlclient::utilities::CppRestJsonDocumentNode, mlclient::utilities::PugiXmlDocumentNode, mlclient::utilities::CppRestJsonContainerNode, and mlclient::utilities::PugiXmlContainerNode.
|
pure virtual |
Returns the Object value of this element or property (i.e. the child object)
InvalidFormatException | if not of the right type |
Implemented in mlclient::utilities::CppRestJsonDocumentNode, mlclient::utilities::PugiXmlDocumentNode, mlclient::utilities::CppRestJsonObjectNode, mlclient::utilities::PugiXmlObjectNode, mlclient::utilities::CppRestJsonArrayNode, and mlclient::utilities::PugiXmlArrayNode.
|
pure virtual |
Returns the string value of this element or property.
InvalidFormatException | if not of the right type |
Implemented in mlclient::utilities::CppRestJsonDocumentNode, mlclient::utilities::PugiXmlDocumentNode, mlclient::utilities::CppRestJsonContainerNode, and mlclient::utilities::PugiXmlContainerNode.
|
pure virtual |
Whether this element or property is an array type.
Implemented in mlclient::utilities::CppRestJsonDocumentNode, mlclient::utilities::PugiXmlDocumentNode, mlclient::utilities::CppRestJsonObjectNode, mlclient::utilities::PugiXmlObjectNode, mlclient::utilities::CppRestJsonArrayNode, and mlclient::utilities::PugiXmlArrayNode.
|
pure virtual |
Whether this element or property is a boolean type.
Implemented in mlclient::utilities::CppRestJsonDocumentNode, mlclient::utilities::PugiXmlDocumentNode, mlclient::utilities::CppRestJsonContainerNode, and mlclient::utilities::PugiXmlContainerNode.
|
pure virtual |
Whether this element or property is a double type.
Implemented in mlclient::utilities::CppRestJsonDocumentNode, mlclient::utilities::PugiXmlDocumentNode, mlclient::utilities::CppRestJsonContainerNode, and mlclient::utilities::PugiXmlContainerNode.
|
pure virtual |
Whether this element or property is a integer type.
Implemented in mlclient::utilities::CppRestJsonDocumentNode, mlclient::utilities::PugiXmlDocumentNode, mlclient::utilities::CppRestJsonContainerNode, and mlclient::utilities::PugiXmlContainerNode.
|
pure virtual |
Does this document element have a blank value?
Implemented in mlclient::utilities::CppRestJsonDocumentNode, mlclient::utilities::PugiXmlDocumentNode, mlclient::utilities::CppRestJsonContainerNode, and mlclient::utilities::PugiXmlContainerNode.
|
pure virtual |
Whether this element or property is an object type (i.e. a JSON object or an XML element with element content)
Implemented in mlclient::utilities::CppRestJsonDocumentNode, mlclient::utilities::PugiXmlDocumentNode, mlclient::utilities::CppRestJsonObjectNode, mlclient::utilities::PugiXmlObjectNode, mlclient::utilities::CppRestJsonArrayNode, and mlclient::utilities::PugiXmlArrayNode.
|
pure virtual |
Whether this element or property is a string type.
Implemented in mlclient::utilities::CppRestJsonDocumentNode, mlclient::utilities::PugiXmlDocumentNode, mlclient::utilities::CppRestJsonContainerNode, and mlclient::utilities::PugiXmlContainerNode.