|
| void | AboveMaximum (double actual, const SValue &expected, bool exclusive) |
| |
| void | AboveMaximum (int64_t actual, const SValue &expected, bool exclusive) |
| |
| void | AboveMaximum (uint64_t actual, const SValue &expected, bool exclusive) |
| |
| void | AddDependencySchemaError (const SValue &sourceName, ISchemaValidator *subvalidator) |
| |
|
virtual void | AddDependencySchemaError (const SValue &souceName, ISchemaValidator *subvalidator)=0 |
| |
| void | AddExpectedType (const typename SchemaType::ValueType &expectedType) |
| |
| void | AddMissingDependentProperty (const SValue &targetName) |
| |
| void | AddMissingProperty (const SValue &name) |
| |
| void | BelowMinimum (double actual, const SValue &expected, bool exclusive) |
| |
| void | BelowMinimum (int64_t actual, const SValue &expected, bool exclusive) |
| |
| void | BelowMinimum (uint64_t actual, const SValue &expected, bool exclusive) |
| |
| bool | Bool (bool b) |
| |
| virtual void * | CreateHasher () |
| |
| virtual ISchemaValidator * | CreateSchemaValidator (const SchemaType &root) |
| |
|
virtual ISchemaValidator * | CreateSchemaValidator (const SchemaType &)=0 |
| |
| virtual void | DestroryHasher (void *hasher) |
| |
| virtual void | DestroySchemaValidator (ISchemaValidator *validator) |
| |
|
virtual void | DestroySchemaValidator (ISchemaValidator *validator)=0 |
| |
| void | Disallowed () |
| |
| void | DisallowedItem (SizeType index) |
| |
| void | DisallowedProperty (const Ch *name, SizeType length) |
| |
|
virtual void | DisallowedProperty (const Ch *name, SizeType length)=0 |
| |
| void | DisallowedValue () |
| |
| void | DoesNotMatch (const Ch *str, SizeType length) |
| |
|
virtual void | DoesNotMatch (const Ch *str, SizeType length)=0 |
| |
| bool | Double (double d) |
| |
| void | DuplicateItems (SizeType index1, SizeType index2) |
| |
| bool | EndArray (SizeType elementCount) |
| |
| bool | EndDependencyErrors () |
| |
| void | EndDisallowedType (const typename SchemaType::ValueType &actualType) |
| |
| void | EndMissingDependentProperties (const SValue &sourceName) |
| |
| bool | EndMissingProperties () |
| |
| bool | EndObject (SizeType memberCount) |
| |
| 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.
|
| |
| | GenericSchemaValidator (const SchemaDocumentType &schemaDocument, StateAllocator *allocator=0, size_t schemaStackCapacity=kDefaultSchemaStackCapacity, size_t documentStackCapacity=kDefaultDocumentStackCapacity) |
| | Constructor without output handler.
|
| |
| ValueType & | GetError () |
| | Gets the error object.
|
| |
| const ValueType & | GetError () const |
| |
| virtual uint64_t | GetHashCode (void *hasher) |
| |
| PointerType | GetInvalidDocumentPointer () const |
| | Gets the JSON pointer pointed to the invalid value.
|
| |
| const Ch * | GetInvalidSchemaKeyword () const |
| | Gets the keyword of invalid schema.
|
| |
| PointerType | GetInvalidSchemaPointer () const |
| | Gets the JSON pointer pointed to the invalid schema.
|
| |
| bool | Int (int i) |
| |
| bool | Int64 (int64_t i) |
| |
| virtual bool | IsValid () const |
| | Checks whether the current state is valid.
|
| |
| bool | Key (const Ch *str, SizeType len, bool copy) |
| |
| virtual void * | MallocState (size_t size) |
| |
| void | NoneOf (ISchemaValidator **subvalidators, SizeType count) |
| |
|
virtual void | NoneOf (ISchemaValidator **subvalidators, SizeType count)=0 |
| |
| void | NotAllOf (ISchemaValidator **subvalidators, SizeType count) |
| |
|
virtual void | NotAllOf (ISchemaValidator **subvalidators, SizeType count)=0 |
| |
| void | NotMultipleOf (double actual, const SValue &expected) |
| |
| void | NotMultipleOf (int64_t actual, const SValue &expected) |
| |
| void | NotMultipleOf (uint64_t actual, const SValue &expected) |
| |
| void | NotOneOf (ISchemaValidator **subvalidators, SizeType count) |
| |
|
virtual void | NotOneOf (ISchemaValidator **subvalidators, SizeType count)=0 |
| |
| bool | Null () |
| |
| void | PropertyViolations (ISchemaValidator **subvalidators, SizeType count) |
| |
|
virtual void | PropertyViolations (ISchemaValidator **subvalidators, SizeType count)=0 |
| |
| bool | RawNumber (const Ch *str, SizeType length, bool copy) |
| |
| void | Reset () |
| | Reset the internal states.
|
| |
| bool | StartArray () |
| |
| void | StartDependencyErrors () |
| |
| void | StartDisallowedType () |
| |
| void | StartMissingDependentProperties () |
| |
| void | StartMissingProperties () |
| |
| bool | StartObject () |
| |
| bool | String (const Ch *str, SizeType length, bool copy) |
| |
| void | TooFewItems (SizeType actualCount, SizeType expectedCount) |
| |
| void | TooFewProperties (SizeType actualCount, SizeType expectedCount) |
| |
| void | TooLong (const Ch *str, SizeType length, SizeType expected) |
| |
|
virtual void | TooLong (const Ch *str, SizeType length, SizeType expected)=0 |
| |
| void | TooManyItems (SizeType actualCount, SizeType expectedCount) |
| |
| void | TooManyProperties (SizeType actualCount, SizeType expectedCount) |
| |
| void | TooShort (const Ch *str, SizeType length, SizeType expected) |
| |
|
virtual void | TooShort (const Ch *str, SizeType length, SizeType expected)=0 |
| |
| bool | Uint (unsigned u) |
| |
| bool | Uint64 (uint64_t u) |
| |
| | ~GenericSchemaValidator () |
| | Destructor.
|
| |
template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
class GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >
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().
- Template Parameters
-
| 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 1763 of file schema.h.