Public Types | Public Member Functions | Public Attributes | List of all members
internal::SchemaValidationContext< SchemaDocumentType > Struct Template Reference

#include <schema.h>

Public Types

enum  PatternValidatorType { kPatternValidatorOnly, kPatternValidatorWithProperty, kPatternValidatorWithAdditionalProperty }
 
typedef Schema< SchemaDocumentType > SchemaType
 
typedef ISchemaStateFactory< SchemaTypeSchemaValidatorFactoryType
 
typedef IValidationErrorHandler< SchemaTypeErrorHandlerType
 
typedef SchemaType::ValueType ValueType
 
typedef ValueType::Ch Ch
 

Public Member Functions

 SchemaValidationContext (SchemaValidatorFactoryType &f, ErrorHandlerType &eh, const SchemaType *s)
 
 ~SchemaValidationContext ()
 

Public Attributes

SchemaValidatorFactoryTypefactory
 
ErrorHandlerTypeerror_handler
 
const SchemaTypeschema
 
const SchemaTypevalueSchema
 
const ChinvalidKeyword
 
void * hasher
 
void * arrayElementHashCodes
 
ISchemaValidator ** validators
 
SizeType validatorCount
 
ISchemaValidator ** patternPropertiesValidators
 
SizeType patternPropertiesValidatorCount
 
const SchemaType ** patternPropertiesSchemas
 
SizeType patternPropertiesSchemaCount
 
PatternValidatorType valuePatternValidatorType
 
PatternValidatorType objectPatternValidatorType
 
SizeType arrayElementIndex
 
boolpropertyExist
 
bool inArray
 
bool valueUniqueness
 
bool arrayUniqueness
 

Detailed Description

template<typename SchemaDocumentType>
struct internal::SchemaValidationContext< SchemaDocumentType >

Definition at line 316 of file schema.h.

Member Typedef Documentation

template<typename SchemaDocumentType >
typedef ValueType::Ch internal::SchemaValidationContext< SchemaDocumentType >::Ch

Definition at line 321 of file schema.h.

template<typename SchemaDocumentType >
typedef IValidationErrorHandler<SchemaType> internal::SchemaValidationContext< SchemaDocumentType >::ErrorHandlerType

Definition at line 319 of file schema.h.

template<typename SchemaDocumentType >
typedef Schema<SchemaDocumentType> internal::SchemaValidationContext< SchemaDocumentType >::SchemaType

Definition at line 317 of file schema.h.

template<typename SchemaDocumentType >
typedef ISchemaStateFactory<SchemaType> internal::SchemaValidationContext< SchemaDocumentType >::SchemaValidatorFactoryType

Definition at line 318 of file schema.h.

template<typename SchemaDocumentType >
typedef SchemaType::ValueType internal::SchemaValidationContext< SchemaDocumentType >::ValueType

Definition at line 320 of file schema.h.

Member Enumeration Documentation

template<typename SchemaDocumentType >
enum internal::SchemaValidationContext::PatternValidatorType

Constructor & Destructor Documentation

template<typename SchemaDocumentType >
internal::SchemaValidationContext< SchemaDocumentType >::SchemaValidationContext ( SchemaValidatorFactoryType f,
ErrorHandlerType eh,
const SchemaType s 
)
inline

Definition at line 329 of file schema.h.

329  :
330  factory(f),
331  error_handler(eh),
332  schema(s),
333  valueSchema(),
334  invalidKeyword(),
335  hasher(),
337  validators(),
338  validatorCount(),
344  propertyExist(),
345  inArray(false),
346  valueUniqueness(false),
347  arrayUniqueness(false)
348  {
349  }
const SchemaType ** patternPropertiesSchemas
Definition: schema.h:381
PatternValidatorType valuePatternValidatorType
Definition: schema.h:383
const SchemaType * schema
Definition: schema.h:372
const SchemaType * valueSchema
Definition: schema.h:373
ISchemaValidator ** patternPropertiesValidators
Definition: schema.h:379
ISchemaValidator ** validators
Definition: schema.h:377
SchemaValidatorFactoryType & factory
Definition: schema.h:370
SizeType patternPropertiesValidatorCount
Definition: schema.h:380
ErrorHandlerType & error_handler
Definition: schema.h:371
static QCString * s
Definition: config.cpp:1042
template<typename SchemaDocumentType >
internal::SchemaValidationContext< SchemaDocumentType >::~SchemaValidationContext ( )
inline

Definition at line 351 of file schema.h.

351  {
352  if (hasher)
354  if (validators) {
355  for (SizeType i = 0; i < validatorCount; i++)
358  }
360  for (SizeType i = 0; i < patternPropertiesValidatorCount; i++)
363  }
366  if (propertyExist)
368  }
virtual void DestroySchemaValidator(ISchemaValidator *validator)=0
const SchemaType ** patternPropertiesSchemas
Definition: schema.h:381
RAPIDJSON_NAMESPACE_BEGIN typedef unsigned SizeType
Size type (for string lengths, array sizes, etc.)
Definition: rapidjson.h:384
ISchemaValidator ** patternPropertiesValidators
Definition: schema.h:379
ISchemaValidator ** validators
Definition: schema.h:377
SchemaValidatorFactoryType & factory
Definition: schema.h:370
virtual void DestroryHasher(void *hasher)=0
SizeType patternPropertiesValidatorCount
Definition: schema.h:380
virtual void FreeState(void *p)=0

Member Data Documentation

template<typename SchemaDocumentType >
void* internal::SchemaValidationContext< SchemaDocumentType >::arrayElementHashCodes

Definition at line 376 of file schema.h.

template<typename SchemaDocumentType >
SizeType internal::SchemaValidationContext< SchemaDocumentType >::arrayElementIndex

Definition at line 385 of file schema.h.

template<typename SchemaDocumentType >
bool internal::SchemaValidationContext< SchemaDocumentType >::arrayUniqueness

Definition at line 389 of file schema.h.

template<typename SchemaDocumentType >
ErrorHandlerType& internal::SchemaValidationContext< SchemaDocumentType >::error_handler

Definition at line 371 of file schema.h.

template<typename SchemaDocumentType >
SchemaValidatorFactoryType& internal::SchemaValidationContext< SchemaDocumentType >::factory

Definition at line 370 of file schema.h.

template<typename SchemaDocumentType >
void* internal::SchemaValidationContext< SchemaDocumentType >::hasher

Definition at line 375 of file schema.h.

template<typename SchemaDocumentType >
bool internal::SchemaValidationContext< SchemaDocumentType >::inArray

Definition at line 387 of file schema.h.

template<typename SchemaDocumentType >
const Ch* internal::SchemaValidationContext< SchemaDocumentType >::invalidKeyword

Definition at line 374 of file schema.h.

template<typename SchemaDocumentType >
PatternValidatorType internal::SchemaValidationContext< SchemaDocumentType >::objectPatternValidatorType

Definition at line 384 of file schema.h.

template<typename SchemaDocumentType >
SizeType internal::SchemaValidationContext< SchemaDocumentType >::patternPropertiesSchemaCount

Definition at line 382 of file schema.h.

template<typename SchemaDocumentType >
const SchemaType** internal::SchemaValidationContext< SchemaDocumentType >::patternPropertiesSchemas

Definition at line 381 of file schema.h.

template<typename SchemaDocumentType >
SizeType internal::SchemaValidationContext< SchemaDocumentType >::patternPropertiesValidatorCount

Definition at line 380 of file schema.h.

template<typename SchemaDocumentType >
ISchemaValidator** internal::SchemaValidationContext< SchemaDocumentType >::patternPropertiesValidators

Definition at line 379 of file schema.h.

template<typename SchemaDocumentType >
bool* internal::SchemaValidationContext< SchemaDocumentType >::propertyExist

Definition at line 386 of file schema.h.

template<typename SchemaDocumentType >
const SchemaType* internal::SchemaValidationContext< SchemaDocumentType >::schema

Definition at line 372 of file schema.h.

template<typename SchemaDocumentType >
SizeType internal::SchemaValidationContext< SchemaDocumentType >::validatorCount

Definition at line 378 of file schema.h.

template<typename SchemaDocumentType >
ISchemaValidator** internal::SchemaValidationContext< SchemaDocumentType >::validators

Definition at line 377 of file schema.h.

template<typename SchemaDocumentType >
PatternValidatorType internal::SchemaValidationContext< SchemaDocumentType >::valuePatternValidatorType

Definition at line 383 of file schema.h.

template<typename SchemaDocumentType >
const SchemaType* internal::SchemaValidationContext< SchemaDocumentType >::valueSchema

Definition at line 373 of file schema.h.

template<typename SchemaDocumentType >
bool internal::SchemaValidationContext< SchemaDocumentType >::valueUniqueness

Definition at line 388 of file schema.h.


The documentation for this struct was generated from the following file: