NCBI C++ ToolKit
Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator > Class Template Reference

Search Toolkit Book for rapidjson::GenericSchemaValidator

JSON Schema Validator. More...

#include <misc/jsonwrapp/rapidjson11/schema.h>

+ Inheritance diagram for rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >:
+ Collaboration diagram for rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >:

Public Types

typedef SchemaDocumentType::SchemaType SchemaType
 
typedef SchemaDocumentType::PointerType PointerType
 
typedef SchemaType::EncodingType EncodingType
 
typedef EncodingType::Ch Ch
 

Public Member Functions

 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...
 
 ~GenericSchemaValidator ()
 Destructor. More...
 
void Reset ()
 Reset the internal states. More...
 
virtual bool IsValid () const
 Checks whether the current state is valid. More...
 
PointerType GetInvalidSchemaPointer () const
 Gets the JSON pointer pointed to the invalid schema. More...
 
const ChGetInvalidSchemaKeyword () const
 Gets the keyword of invalid schema. More...
 
PointerType GetInvalidDocumentPointer () const
 Gets the JSON pointer pointed to the invalid value. More...
 
bool Null ()
 
bool Bool (bool b)
 
bool Int (int i)
 
bool Uint (unsigned u)
 
bool Int64 (int64_t i)
 
bool Uint64 (uint64_t u)
 
bool Double (double d)
 
bool RawNumber (const Ch *str, SizeType length, bool copy)
 
bool String (const Ch *str, SizeType length, bool copy)
 
bool StartObject ()
 
bool Key (const Ch *str, SizeType len, bool copy)
 
bool EndObject (SizeType memberCount)
 
bool StartArray ()
 
bool EndArray (SizeType elementCount)
 
virtual ISchemaValidator * CreateSchemaValidator (const SchemaType &root)
 
virtual void DestroySchemaValidator (ISchemaValidator *validator)
 
virtual void * CreateHasher ()
 
virtual uint64_t GetHashCode (void *hasher)
 
virtual void DestroryHasher (void *hasher)
 
virtual void * MallocState (size_t size)
 
virtual void FreeState (void *p)
 
template<typename ExtHandler >
void SetValidationError (const ExtHandler &validator)
 
- Public Member Functions inherited from rapidjson::internal::ISchemaStateFactory< SchemaDocumentType::SchemaType >
virtual ~ISchemaStateFactory ()
 
virtual void DestroySchemaValidator (ISchemaValidator *validator)=0
 
- Public Member Functions inherited from rapidjson::internal::ISchemaValidator
virtual ~ISchemaValidator ()
 

Private Types

typedef SchemaType::Context Context
 
typedef GenericValue< UTF8<>, StateAllocator > HashCodeArray
 
typedef internal::Hasher< EncodingType, StateAllocator > HasherType
 

Private Member Functions

 GenericSchemaValidator (const SchemaDocumentType &schemaDocument, const SchemaType &root, StateAllocator *allocator=0, size_t schemaStackCapacity=kDefaultSchemaStackCapacity, size_t documentStackCapacity=kDefaultDocumentStackCapacity)
 
StateAllocator & GetStateAllocator ()
 
bool BeginValue ()
 
bool EndValue ()
 
void AppendToken (const Ch *str, SizeType len)
 
RAPIDJSON_FORCEINLINE void PushSchema (const SchemaType &schema)
 
RAPIDJSON_FORCEINLINE void PopSchema ()
 
const SchemaTypeCurrentSchema () const
 
ContextCurrentContext ()
 
const ContextCurrentContext () const
 
OutputHandler & CreateNullHandler ()
 

Private Attributes

const SchemaDocumentType * schemaDocument_
 
const SchemaTyperoot_
 
StateAllocator * stateAllocator_
 
StateAllocator * ownStateAllocator_
 
internal::Stack< StateAllocator > schemaStack_
 stack to store the current path of schema (BaseSchemaType *) More...
 
internal::Stack< StateAllocator > documentStack_
 stack to store the current path of validating document (Ch) More...
 
OutputHandler & outputHandler_
 
OutputHandler * nullHandler_
 
bool valid_
 
PointerType invalidSchemaPointer_
 
const ChinvalidSchemaKeyword_
 
PointerType invalidDocumentPointer_
 

Static Private Attributes

static const size_t kDefaultSchemaStackCapacity = 1024
 
static const size_t kDefaultDocumentStackCapacity = 256
 

Detailed Description

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
class rapidjson::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
SchemaDocumentTypeType of schema document.
OutputHandlerType of output handler. Default handler does nothing.
StateAllocatorAllocator for storing the internal validation states.

Definition at line 1565 of file schema.h.

Member Typedef Documentation

◆ Ch

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
typedef EncodingType::Ch rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::Ch

Definition at line 1573 of file schema.h.

◆ Context

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
typedef SchemaType::Context rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::Context
private

Definition at line 1808 of file schema.h.

◆ EncodingType

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
typedef SchemaType::EncodingType rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::EncodingType

Definition at line 1572 of file schema.h.

◆ HashCodeArray

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
typedef GenericValue<UTF8<>, StateAllocator> rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::HashCodeArray
private

Definition at line 1809 of file schema.h.

◆ HasherType

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
typedef internal::Hasher<EncodingType, StateAllocator> rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::HasherType
private

Definition at line 1810 of file schema.h.

◆ PointerType

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
typedef SchemaDocumentType::PointerType rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::PointerType

Definition at line 1571 of file schema.h.

◆ SchemaType

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
typedef SchemaDocumentType::SchemaType rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::SchemaType

Definition at line 1570 of file schema.h.

Constructor & Destructor Documentation

◆ GenericSchemaValidator() [1/3]

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::GenericSchemaValidator ( const SchemaDocumentType &  schemaDocument,
StateAllocator *  allocator = 0,
size_t  schemaStackCapacity = kDefaultSchemaStackCapacity,
size_t  documentStackCapacity = kDefaultDocumentStackCapacity 
)
inline

Constructor without output handler.

Parameters
schemaDocumentThe schema document to conform to.
allocatorOptional allocator for storing internal validation states.
schemaStackCapacityOptional initial capacity of schema path stack.
documentStackCapacityOptional initial capacity of document path stack.

Definition at line 1582 of file schema.h.

◆ GenericSchemaValidator() [2/3]

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::GenericSchemaValidator ( const SchemaDocumentType &  schemaDocument,
OutputHandler &  outputHandler,
StateAllocator *  allocator = 0,
size_t  schemaStackCapacity = kDefaultSchemaStackCapacity,
size_t  documentStackCapacity = kDefaultDocumentStackCapacity 
)
inline

Constructor with output handler.

Parameters
schemaDocumentThe schema document to conform to.
allocatorOptional allocator for storing internal validation states.
schemaStackCapacityOptional initial capacity of schema path stack.
documentStackCapacityOptional initial capacity of document path stack.

Definition at line 1613 of file schema.h.

◆ ~GenericSchemaValidator()

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::~GenericSchemaValidator ( )
inline

◆ GenericSchemaValidator() [3/3]

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::GenericSchemaValidator ( const SchemaDocumentType &  schemaDocument,
const SchemaType root,
StateAllocator *  allocator = 0,
size_t  schemaStackCapacity = kDefaultSchemaStackCapacity,
size_t  documentStackCapacity = kDefaultDocumentStackCapacity 
)
inlineprivate

Definition at line 1812 of file schema.h.

Member Function Documentation

◆ AppendToken()

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
void rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::AppendToken ( const Ch str,
SizeType  len 
)
inlineprivate

Definition at line 1914 of file schema.h.

References i, len, and str().

◆ BeginValue()

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
bool rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::BeginValue ( )
inlineprivate

Definition at line 1846 of file schema.h.

References i, and RAPIDJSON_ASSERT.

◆ Bool()

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
bool rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::Bool ( bool  b)
inline

Definition at line 1720 of file schema.h.

References b, and RAPIDJSON_SCHEMA_HANDLE_VALUE_.

◆ CreateHasher()

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
virtual void* rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::CreateHasher ( )
inlinevirtual

◆ CreateNullHandler()

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
OutputHandler& rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::CreateNullHandler ( )
inlineprivate

Definition at line 1946 of file schema.h.

◆ CreateSchemaValidator()

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
virtual ISchemaValidator* rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::CreateSchemaValidator ( const SchemaType root)
inlinevirtual

◆ CurrentContext() [1/2]

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
Context& rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::CurrentContext ( )
inlineprivate

Definition at line 1943 of file schema.h.

◆ CurrentContext() [2/2]

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
const Context& rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::CurrentContext ( ) const
inlineprivate

Definition at line 1944 of file schema.h.

◆ CurrentSchema()

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
const SchemaType& rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::CurrentSchema ( ) const
inlineprivate

Definition at line 1942 of file schema.h.

◆ DestroryHasher()

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
virtual void rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::DestroryHasher ( void *  hasher)
inlinevirtual

◆ DestroySchemaValidator()

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
virtual void rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::DestroySchemaValidator ( ISchemaValidator *  validator)
inlinevirtual

◆ Double()

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
bool rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::Double ( double  d)
inline

Definition at line 1725 of file schema.h.

References RAPIDJSON_SCHEMA_HANDLE_VALUE_.

◆ EndArray()

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
bool rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::EndArray ( SizeType  elementCount)
inline

Definition at line 1758 of file schema.h.

References RAPIDJSON_SCHEMA_HANDLE_END_, and RAPIDJSON_SCHEMA_HANDLE_PARALLEL_.

◆ EndObject()

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
bool rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::EndObject ( SizeType  memberCount)
inline

Definition at line 1745 of file schema.h.

References RAPIDJSON_SCHEMA_HANDLE_END_, and RAPIDJSON_SCHEMA_HANDLE_PARALLEL_.

◆ EndValue()

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
bool rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::EndValue ( )
inlineprivate

◆ FreeState()

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
virtual void rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::FreeState ( void *  p)
inlinevirtual

◆ GetHashCode()

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
virtual uint64_t rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::GetHashCode ( void *  hasher)
inlinevirtual

◆ GetInvalidDocumentPointer()

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
PointerType rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::GetInvalidDocumentPointer ( ) const
inline

Gets the JSON pointer pointed to the invalid value.

Definition at line 1677 of file schema.h.

Referenced by rapidjson::SchemaValidatingReader< parseFlags, InputStream, SourceEncoding, SchemaDocumentType, StackAllocator >::operator()().

◆ GetInvalidSchemaKeyword()

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
const Ch* rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::GetInvalidSchemaKeyword ( ) const
inline

◆ GetInvalidSchemaPointer()

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
PointerType rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::GetInvalidSchemaPointer ( ) const
inline

Gets the JSON pointer pointed to the invalid schema.

Definition at line 1667 of file schema.h.

Referenced by rapidjson::SchemaValidatingReader< parseFlags, InputStream, SourceEncoding, SchemaDocumentType, StackAllocator >::operator()().

◆ GetStateAllocator()

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
StateAllocator& rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::GetStateAllocator ( )
inlineprivate

Definition at line 1840 of file schema.h.

References RAPIDJSON_NEW.

◆ Int()

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
bool rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::Int ( int  i)
inline

Definition at line 1721 of file schema.h.

References i, and RAPIDJSON_SCHEMA_HANDLE_VALUE_.

◆ Int64()

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
bool rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::Int64 ( int64_t  i)
inline

Definition at line 1723 of file schema.h.

References i, and RAPIDJSON_SCHEMA_HANDLE_VALUE_.

◆ IsValid()

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
virtual bool rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::IsValid ( void  ) const
inlinevirtual

◆ Key()

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
bool rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::Key ( const Ch str,
SizeType  len,
bool  copy 
)
inline

Definition at line 1737 of file schema.h.

References copy(), len, RAPIDJSON_SCHEMA_HANDLE_PARALLEL_, and str().

◆ MallocState()

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
virtual void* rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::MallocState ( size_t  size)
inlinevirtual

◆ Null()

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
bool rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::Null ( )
inline

Definition at line 1719 of file schema.h.

References RAPIDJSON_SCHEMA_HANDLE_VALUE_.

◆ PopSchema()

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
RAPIDJSON_FORCEINLINE void rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::PopSchema ( )
inlineprivate

Definition at line 1933 of file schema.h.

References a, and Free.

◆ PushSchema()

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
RAPIDJSON_FORCEINLINE void rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::PushSchema ( const SchemaType schema)
inlineprivate

Definition at line 1931 of file schema.h.

References schema.

◆ RawNumber()

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
bool rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::RawNumber ( const Ch str,
SizeType  length,
bool  copy 
)
inline

Definition at line 1726 of file schema.h.

References copy(), RAPIDJSON_SCHEMA_HANDLE_VALUE_, and str().

◆ Reset()

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
void rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::Reset ( void  )
inline

Reset the internal states.

Definition at line 1650 of file schema.h.

◆ SetValidationError()

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
template<typename ExtHandler >
void rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::SetValidationError ( const ExtHandler &  validator)
inline

Definition at line 1970 of file schema.h.

◆ StartArray()

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
bool rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::StartArray ( )
inline

Definition at line 1752 of file schema.h.

References RAPIDJSON_SCHEMA_HANDLE_BEGIN_, and RAPIDJSON_SCHEMA_HANDLE_PARALLEL_.

◆ StartObject()

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
bool rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::StartObject ( )
inline

Definition at line 1731 of file schema.h.

References RAPIDJSON_SCHEMA_HANDLE_BEGIN_, and RAPIDJSON_SCHEMA_HANDLE_PARALLEL_.

◆ String()

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
bool rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::String ( const Ch str,
SizeType  length,
bool  copy 
)
inline

Definition at line 1728 of file schema.h.

References copy(), RAPIDJSON_SCHEMA_HANDLE_VALUE_, and str().

◆ Uint()

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
bool rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::Uint ( unsigned  u)
inline

Definition at line 1722 of file schema.h.

References RAPIDJSON_SCHEMA_HANDLE_VALUE_.

◆ Uint64()

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
bool rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::Uint64 ( uint64_t  u)
inline

Definition at line 1724 of file schema.h.

References RAPIDJSON_SCHEMA_HANDLE_VALUE_.

Member Data Documentation

◆ documentStack_

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
internal::Stack<StateAllocator> rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::documentStack_
private

stack to store the current path of validating document (Ch)

Definition at line 1957 of file schema.h.

◆ invalidDocumentPointer_

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
PointerType rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::invalidDocumentPointer_
private

Definition at line 1967 of file schema.h.

◆ invalidSchemaKeyword_

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
const Ch* rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::invalidSchemaKeyword_
private

Definition at line 1966 of file schema.h.

◆ invalidSchemaPointer_

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
PointerType rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::invalidSchemaPointer_
private

Definition at line 1965 of file schema.h.

◆ kDefaultDocumentStackCapacity

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
const size_t rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::kDefaultDocumentStackCapacity = 256
staticprivate

Definition at line 1951 of file schema.h.

◆ kDefaultSchemaStackCapacity

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
const size_t rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::kDefaultSchemaStackCapacity = 1024
staticprivate

Definition at line 1950 of file schema.h.

◆ nullHandler_

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
OutputHandler* rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::nullHandler_
private

Definition at line 1959 of file schema.h.

◆ outputHandler_

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
OutputHandler& rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::outputHandler_
private

Definition at line 1958 of file schema.h.

◆ ownStateAllocator_

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
StateAllocator* rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::ownStateAllocator_
private

Definition at line 1955 of file schema.h.

◆ root_

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
const SchemaType& rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::root_
private

Definition at line 1953 of file schema.h.

◆ schemaDocument_

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
const SchemaDocumentType* rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::schemaDocument_
private

Definition at line 1952 of file schema.h.

◆ schemaStack_

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
internal::Stack<StateAllocator> rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::schemaStack_
private

stack to store the current path of schema (BaseSchemaType *)

Definition at line 1956 of file schema.h.

◆ stateAllocator_

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
StateAllocator* rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::stateAllocator_
private

Definition at line 1954 of file schema.h.

◆ valid_

template<typename SchemaDocumentType , typename OutputHandler = BaseReaderHandler<typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
bool rapidjson::GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::valid_
private

Definition at line 1960 of file schema.h.


The documentation for this class was generated from the following files:
Modified on Wed Apr 17 13:08:50 2024 by modify_doxy.py rev. 669887