|
| GenericSchemaDocument (const ValueType &document, const Ch *uri=0, SizeType uriLength=0, IRemoteSchemaDocumentProviderType *remoteProvider=0, Allocator *allocator=0, const PointerType &pointer=PointerType(), const Specification &spec=Specification(kDraft04)) |
| Constructor. More...
|
|
| ~GenericSchemaDocument () |
| Destructor.
|
|
const GValue & | GetURI () const |
|
const Specification & | GetSpecification () const |
|
bool | IsSupportedSpecification () const |
|
const SchemaType & | GetRoot () const |
| Get the root schema.
|
|
GValue & | GetError () |
| Gets the error object.
|
|
const GValue & | GetError () const |
|
void | SchemaError (const SchemaErrorCode code, const PointerType &location) |
| Default error method.
|
|
void | SchemaErrorValue (const SchemaErrorCode code, const PointerType &location, const Ch *value, SizeType length) |
| Method for error with single string value insert.
|
|
void | SchemaErrorPointer (const SchemaErrorCode code, const PointerType &location, const Ch *value, SizeType length, const PointerType &pointer) |
| Method for error with invalid pointer.
|
|
template<typename ValueT, typename Allocator = CrtAllocator>
class GenericSchemaDocument< ValueT, Allocator >
JSON schema document.
A JSON schema document is a compiled version of a JSON schema. It is basically a tree of internal::Schema.
- Note
- This is an immutable class (i.e. its instance cannot be modified after construction).
- Template Parameters
-
ValueT | Type of JSON value (e.g. Value ), which also determine the encoding. |
Allocator | Allocator type for allocating memory of this document. |