|
bes
Updated for version 3.20.6
|
JSON Schema Validator. More...
#include <schema.h>

Public Member Functions | |
| bool | Bool (bool b) |
| bool | Bool (bool b) |
| virtual void * | CreateHasher () |
| virtual void * | CreateHasher () |
| virtual ISchemaValidator * | CreateSchemaValidator (const SchemaType &root) |
| virtual ISchemaValidator * | CreateSchemaValidator (const SchemaType &root) |
| virtual void | DestroryHasher (void *hasher) |
| virtual void | DestroryHasher (void *hasher) |
| virtual void | DestroySchemaValidator (ISchemaValidator *validator) |
| virtual void | DestroySchemaValidator (ISchemaValidator *validator) |
| virtual void | DestroySchemaValidator (ISchemaValidator *validator)=0 |
| bool | Double (double d) |
| bool | Double (double d) |
| bool | EndArray (SizeType elementCount) |
| bool | EndArray (SizeType elementCount) |
| bool | EndObject (SizeType memberCount) |
| bool | EndObject (SizeType memberCount) |
| virtual void | FreeState (void *p) |
| virtual void | FreeState (void *p) |
| GenericSchemaValidator (const SchemaDocumentType &schemaDocument, OutputHandler &outputHandler, StateAllocator *allocator=0, size_t schemaStackCapacity=kDefaultSchemaStackCapacity, size_t documentStackCapacity=kDefaultDocumentStackCapacity) | |
| Constructor with output handler. More... | |
| GenericSchemaValidator (const SchemaDocumentType &schemaDocument, OutputHandler &outputHandler, StateAllocator *allocator=0, size_t schemaStackCapacity=kDefaultSchemaStackCapacity, size_t documentStackCapacity=kDefaultDocumentStackCapacity) | |
| Constructor with output handler. More... | |
| GenericSchemaValidator (const SchemaDocumentType &schemaDocument, StateAllocator *allocator=0, size_t schemaStackCapacity=kDefaultSchemaStackCapacity, size_t documentStackCapacity=kDefaultDocumentStackCapacity) | |
| Constructor without output handler. More... | |
| GenericSchemaValidator (const SchemaDocumentType &schemaDocument, StateAllocator *allocator=0, size_t schemaStackCapacity=kDefaultSchemaStackCapacity, size_t documentStackCapacity=kDefaultDocumentStackCapacity) | |
| Constructor without output handler. More... | |
| virtual uint64_t | GetHashCode (void *hasher) |
| virtual uint64_t | GetHashCode (void *hasher) |
| PointerType | GetInvalidDocumentPointer () const |
| Gets the JSON pointer pointed to the invalid value. More... | |
| PointerType | GetInvalidDocumentPointer () const |
| Gets the JSON pointer pointed to the invalid value. More... | |
| const Ch * | GetInvalidSchemaKeyword () const |
| Gets the keyword of invalid schema. More... | |
| const Ch * | GetInvalidSchemaKeyword () const |
| Gets the keyword of invalid schema. More... | |
| PointerType | GetInvalidSchemaPointer () const |
| Gets the JSON pointer pointed to the invalid schema. More... | |
| PointerType | GetInvalidSchemaPointer () const |
| Gets the JSON pointer pointed to the invalid schema. More... | |
| bool | Int (int i) |
| bool | Int (int i) |
| bool | Int64 (int64_t i) |
| bool | Int64 (int64_t i) |
| virtual bool | IsValid () const |
| Checks whether the current state is valid. More... | |
| virtual bool | IsValid () const |
| Checks whether the current state is valid. More... | |
| bool | Key (const Ch *str, SizeType len, bool copy) |
| bool | Key (const Ch *str, SizeType len, bool copy) |
| virtual void * | MallocState (size_t size) |
| virtual void * | MallocState (size_t size) |
| bool | Null () |
| bool | Null () |
| bool | RawNumber (const Ch *str, SizeType length, bool copy) |
| bool | RawNumber (const Ch *str, SizeType length, bool copy) |
| void | Reset () |
| Reset the internal states. More... | |
| void | Reset () |
| Reset the internal states. More... | |
| bool | StartArray () |
| bool | StartArray () |
| bool | StartObject () |
| bool | StartObject () |
| bool | String (const Ch *str, SizeType length, bool copy) |
| bool | String (const Ch *str, SizeType length, bool copy) |
| bool | Uint (unsigned u) |
| bool | Uint (unsigned u) |
| bool | Uint64 (uint64_t u) |
| bool | Uint64 (uint64_t u) |
| ~GenericSchemaValidator () | |
| Destructor. More... | |
| ~GenericSchemaValidator () | |
| Destructor. More... | |
JSON Schema Validator.
A SAX style JSON schema validator. It uses a GenericSchemaDocument to validate SAX events. It delegates the incoming SAX events to an output handler. The default output handler does nothing. It can be reused multiple times by calling Reset().
| SchemaDocumentType | Type of schema document. |
| OutputHandler | Type of output handler. Default handler does nothing. |
| StateAllocator | Allocator for storing the internal validation states. |
Definition at line 1553 of file dmrpp_module/xml2json/include/rapidjson/schema.h.
|
inline |
Constructor without output handler.
| schemaDocument | The schema document to conform to. |
| allocator | Optional allocator for storing internal validation states. |
| schemaStackCapacity | Optional initial capacity of schema path stack. |
| documentStackCapacity | Optional initial capacity of document path stack. |
Definition at line 1570 of file cmr_module/rapidjson/schema.h.
|
inline |
Constructor with output handler.
| schemaDocument | The schema document to conform to. |
| allocator | Optional allocator for storing internal validation states. |
| schemaStackCapacity | Optional initial capacity of schema path stack. |
| documentStackCapacity | Optional initial capacity of document path stack. |
Definition at line 1597 of file cmr_module/rapidjson/schema.h.
|
inline |
Destructor.
Definition at line 1619 of file cmr_module/rapidjson/schema.h.
|
inline |
Constructor without output handler.
| schemaDocument | The schema document to conform to. |
| allocator | Optional allocator for storing internal validation states. |
| schemaStackCapacity | Optional initial capacity of schema path stack. |
| documentStackCapacity | Optional initial capacity of document path stack. |
Definition at line 1570 of file dmrpp_module/xml2json/include/rapidjson/schema.h.
|
inline |
Constructor with output handler.
| schemaDocument | The schema document to conform to. |
| allocator | Optional allocator for storing internal validation states. |
| schemaStackCapacity | Optional initial capacity of schema path stack. |
| documentStackCapacity | Optional initial capacity of document path stack. |
Definition at line 1597 of file dmrpp_module/xml2json/include/rapidjson/schema.h.
|
inline |
Destructor.
Definition at line 1619 of file dmrpp_module/xml2json/include/rapidjson/schema.h.
|
inline |
Gets the JSON pointer pointed to the invalid value.
Definition at line 1647 of file cmr_module/rapidjson/schema.h.
|
inline |
Gets the JSON pointer pointed to the invalid value.
Definition at line 1647 of file dmrpp_module/xml2json/include/rapidjson/schema.h.
|
inline |
Gets the keyword of invalid schema.
Definition at line 1642 of file cmr_module/rapidjson/schema.h.
|
inline |
Gets the keyword of invalid schema.
Definition at line 1642 of file dmrpp_module/xml2json/include/rapidjson/schema.h.
|
inline |
Gets the JSON pointer pointed to the invalid schema.
Definition at line 1637 of file cmr_module/rapidjson/schema.h.
|
inline |
Gets the JSON pointer pointed to the invalid schema.
Definition at line 1637 of file dmrpp_module/xml2json/include/rapidjson/schema.h.
|
inlinevirtual |
Checks whether the current state is valid.
Implements internal::ISchemaValidator.
Definition at line 1634 of file cmr_module/rapidjson/schema.h.
|
inlinevirtual |
Checks whether the current state is valid.
Implements internal::ISchemaValidator.
Definition at line 1634 of file dmrpp_module/xml2json/include/rapidjson/schema.h.
|
inline |
Reset the internal states.
Definition at line 1625 of file cmr_module/rapidjson/schema.h.
|
inline |
Reset the internal states.
Definition at line 1625 of file dmrpp_module/xml2json/include/rapidjson/schema.h.