JSON schema document. Plus de détails...
#include <arcane/utils/internal/json/rapidjson/schema.h>
Classes | |
struct | SchemaEntry |
struct | SchemaRefEntry |
Types publics | |
typedef ValueT | ValueType |
typedef IGenericRemoteSchemaDocumentProvider< GenericSchemaDocument > | IRemoteSchemaDocumentProviderType |
typedef Allocator | AllocatorType |
typedef ValueType::EncodingType | EncodingType |
typedef EncodingType::Ch | Ch |
typedef internal::Schema< GenericSchemaDocument > | SchemaType |
typedef GenericPointer< ValueType, Allocator > | PointerType |
typedef GenericValue< EncodingType, Allocator > | URIType |
Fonctions membres publiques | |
GenericSchemaDocument (const ValueType &document, const Ch *uri=0, SizeType uriLength=0, IRemoteSchemaDocumentProviderType *remoteProvider=0, Allocator *allocator=0) | |
Constructor. | |
~GenericSchemaDocument () | |
Destructor. | |
const URIType & | GetURI () const |
const SchemaType & | GetRoot () const |
Get the root schema. | |
Fonctions membres privées | |
GenericSchemaDocument (const GenericSchemaDocument &) | |
Prohibit copying. | |
GenericSchemaDocument & | operator= (const GenericSchemaDocument &) |
Prohibit assignment. | |
void | CreateSchemaRecursive (const SchemaType **schema, const PointerType &pointer, const ValueType &v, const ValueType &document) |
void | CreateSchema (const SchemaType **schema, const PointerType &pointer, const ValueType &v, const ValueType &document) |
bool | HandleRefSchema (const PointerType &source, const SchemaType **schema, const ValueType &v, const ValueType &document) |
const SchemaType * | GetSchema (const PointerType &pointer) const |
PointerType | GetPointer (const SchemaType *schema) const |
const SchemaType * | GetTypeless () const |
Attributs privés | |
IRemoteSchemaDocumentProviderType * | remoteProvider_ |
Allocator * | allocator_ |
Allocator * | ownAllocator_ |
const SchemaType * | root_ |
Root schema. | |
SchemaType * | typeless_ |
internal::Stack< Allocator > | schemaMap_ |
internal::Stack< Allocator > | schemaRef_ |
URIType | uri_ |
Attributs privés statiques | |
static const size_t | kInitialSchemaMapSize = 64 |
static const size_t | kInitialSchemaRefSize = 64 |
Amis | |
class | internal::Schema< GenericSchemaDocument > |
template<typename , typename , typename > | |
class | GenericSchemaValidator |
JSON schema document.
A JSON schema document is a compiled version of a JSON schema. It is basically a tree of internal::Schema.
ValueT | Type of JSON value (e.g. Value ), which also determine the encoding. |
Allocator | Allocator type for allocating memory of this document. |
typedef Allocator GenericSchemaDocument< ValueT, Allocator >::AllocatorType |
typedef EncodingType::Ch GenericSchemaDocument< ValueT, Allocator >::Ch |
typedef ValueType::EncodingType GenericSchemaDocument< ValueT, Allocator >::EncodingType |
typedef IGenericRemoteSchemaDocumentProvider<GenericSchemaDocument> GenericSchemaDocument< ValueT, Allocator >::IRemoteSchemaDocumentProviderType |
typedef GenericPointer<ValueType, Allocator> GenericSchemaDocument< ValueT, Allocator >::PointerType |
typedef internal::Schema<GenericSchemaDocument> GenericSchemaDocument< ValueT, Allocator >::SchemaType |
typedef GenericValue<EncodingType, Allocator> GenericSchemaDocument< ValueT, Allocator >::URIType |
typedef ValueT GenericSchemaDocument< ValueT, Allocator >::ValueType |
|
inlineexplicit |
Constructor.
Compile a JSON document into schema document.
document | A JSON document as source. |
uri | The base URI of this schema document for purposes of violation reporting. |
uriLength | Length of name , in code points. |
remoteProvider | An optional remote schema document provider for resolving remote reference. Can be null. |
allocator | An optional allocator instance for allocating memory. Can be null. |
Définition à la ligne 1526 du fichier schema.h.
Références kObjectType, RAPIDJSON_ASSERT, RAPIDJSON_NEW, et GenericSchemaDocument< ValueT, Allocator >::root_.
|
inline |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inline |
Get the root schema.
Définition à la ligne 1607 du fichier schema.h.
Références GenericSchemaDocument< ValueT, Allocator >::root_.
|
inlineprivate |
|
inlineprivate |
|
inline |
|
inlineprivate |
|
friend |
|
friend |
|
private |
|
staticprivate |
|
staticprivate |
|
private |
|
private |
|
private |
Root schema.
Définition à la ligne 1733 du fichier schema.h.
Référencé par GenericSchemaDocument< ValueT, Allocator >::GenericSchemaDocument(), et GenericSchemaDocument< ValueT, Allocator >::GetRoot().
|
private |
|
private |
|
private |
|
private |