|
void | AboveMaximum (int64_t actual, const SValue &expected, bool exclusive) |
|
void | AboveMaximum (uint64_t actual, const SValue &expected, bool exclusive) |
|
void | AboveMaximum (double actual, const SValue &expected, bool exclusive) |
|
void | AddDependencySchemaError (const SValue &sourceName, ISchemaValidator *subvalidator) |
|
void | AddExpectedType (const typename SchemaType::ValueType &expectedType) |
|
void | AddMissingDependentProperty (const SValue &targetName) |
|
void | AddMissingProperty (const SValue &name) |
|
void | BelowMinimum (int64_t actual, const SValue &expected, bool exclusive) |
|
void | BelowMinimum (uint64_t actual, const SValue &expected, bool exclusive) |
|
void | BelowMinimum (double actual, const SValue &expected, bool exclusive) |
|
bool | Bool (bool b) |
|
virtual void * | CreateHasher () |
|
virtual ISchemaValidator * | CreateSchemaValidator (const SchemaType &root) |
|
virtual void | DestroryHasher (void *hasher) |
|
virtual void | DestroySchemaValidator (ISchemaValidator *validator) |
|
void | Disallowed () |
|
void | DisallowedItem (SizeType index) |
|
void | DisallowedProperty (const Ch *name, SizeType length) |
|
void | DisallowedValue () |
|
void | DoesNotMatch (const Ch *str, SizeType length) |
|
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, StateAllocator *allocator=0, size_t schemaStackCapacity=kDefaultSchemaStackCapacity, size_t documentStackCapacity=kDefaultDocumentStackCapacity) |
| Constructor without 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...
|
|
ValueType & | GetError () |
| Gets the error object. More...
|
|
const ValueType & | GetError () const |
|
virtual uint64_t | GetHashCode (void *hasher) |
|
PointerType | GetInvalidDocumentPointer () const |
| Gets the JSON pointer pointed to the invalid value. 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...
|
|
bool | Int (int i) |
|
bool | Int64 (int64_t i) |
|
virtual bool | IsValid () const |
| Checks whether the current state is valid. More...
|
|
bool | Key (const Ch *str, SizeType len, bool copy) |
|
virtual void * | MallocState (size_t size) |
|
void | NoneOf (ISchemaValidator **subvalidators, SizeType count) |
|
void | NotAllOf (ISchemaValidator **subvalidators, SizeType count) |
|
void | NotMultipleOf (int64_t actual, const SValue &expected) |
|
void | NotMultipleOf (uint64_t actual, const SValue &expected) |
|
void | NotMultipleOf (double actual, const SValue &expected) |
|
void | NotOneOf (ISchemaValidator **subvalidators, SizeType count) |
|
bool | Null () |
|
void | PropertyViolations (ISchemaValidator **subvalidators, SizeType count) |
|
bool | RawNumber (const Ch *str, SizeType length, bool copy) |
|
void | Reset () |
| Reset the internal states. More...
|
|
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) |
|
void | TooManyItems (SizeType actualCount, SizeType expectedCount) |
|
void | TooManyProperties (SizeType actualCount, SizeType expectedCount) |
|
void | TooShort (const Ch *str, SizeType length, SizeType expected) |
|
bool | Uint (unsigned u) |
|
bool | Uint64 (uint64_t u) |
|
| ~GenericSchemaValidator () |
| Destructor. More...
|
|
virtual void | DestroySchemaValidator (ISchemaValidator *validator)=0 |
|
virtual | ~ISchemaStateFactory () |
|
virtual | ~ISchemaValidator () |
|
Public Member Functions inherited from internal::IValidationErrorHandler< SchemaDocumentType::SchemaType > |
virtual void | AboveMaximum (int64_t actual, const SValue &expected, bool exclusive)=0 |
|
virtual void | AboveMaximum (uint64_t actual, const SValue &expected, bool exclusive)=0 |
|
virtual void | AboveMaximum (double actual, const SValue &expected, bool exclusive)=0 |
|
virtual void | AddDependencySchemaError (const SValue &souceName, ISchemaValidator *subvalidator)=0 |
|
virtual void | AddExpectedType (const typename SchemaDocumentType::SchemaType::ValueType &expectedType)=0 |
|
virtual void | AddMissingDependentProperty (const SValue &targetName)=0 |
|
virtual void | AddMissingProperty (const SValue &name)=0 |
|
virtual void | BelowMinimum (int64_t actual, const SValue &expected, bool exclusive)=0 |
|
virtual void | BelowMinimum (uint64_t actual, const SValue &expected, bool exclusive)=0 |
|
virtual void | BelowMinimum (double actual, const SValue &expected, bool exclusive)=0 |
|
virtual void | DisallowedProperty (const Ch *name, SizeType length)=0 |
|
virtual void | DoesNotMatch (const Ch *str, SizeType length)=0 |
|
virtual void | EndDisallowedType (const typename SchemaDocumentType::SchemaType::ValueType &actualType)=0 |
|
virtual void | EndMissingDependentProperties (const SValue &sourceName)=0 |
|
virtual void | NoneOf (ISchemaValidator **subvalidators, SizeType count)=0 |
|
virtual void | NotAllOf (ISchemaValidator **subvalidators, SizeType count)=0 |
|
virtual void | NotMultipleOf (int64_t actual, const SValue &expected)=0 |
|
virtual void | NotMultipleOf (uint64_t actual, const SValue &expected)=0 |
|
virtual void | NotMultipleOf (double actual, const SValue &expected)=0 |
|
virtual void | NotOneOf (ISchemaValidator **subvalidators, SizeType count)=0 |
|
virtual void | PropertyViolations (ISchemaValidator **subvalidators, SizeType count)=0 |
|
virtual void | TooLong (const Ch *str, SizeType length, SizeType expected)=0 |
|
virtual void | TooShort (const Ch *str, SizeType length, SizeType expected)=0 |
|
virtual | ~IValidationErrorHandler () |
|
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 153 of file fwd.h.