IN2OSM  1.0.1
SchemaValidationContext< SchemaDocumentType >

#include <schema.h>

Collaboration diagram for SchemaValidationContext< SchemaDocumentType >:
Collaboration graph

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
 
bool * propertyExist
 
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

◆ Ch

typedef ValueType::Ch Ch

Definition at line 321 of file schema.h.

◆ ErrorHandlerType

Definition at line 319 of file schema.h.

◆ SchemaType

typedef Schema<SchemaDocumentType> SchemaType

Definition at line 317 of file schema.h.

◆ SchemaValidatorFactoryType

◆ ValueType

Definition at line 320 of file schema.h.

Member Enumeration Documentation

◆ PatternValidatorType

Constructor & Destructor Documentation

◆ SchemaValidationContext()

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
const SchemaType * schema
Definition: schema.h:372
ErrorHandlerType & error_handler
Definition: schema.h:371
SizeType patternPropertiesValidatorCount
Definition: schema.h:380
const SchemaType * valueSchema
Definition: schema.h:373
ISchemaValidator ** patternPropertiesValidators
Definition: schema.h:379
PatternValidatorType valuePatternValidatorType
Definition: schema.h:383
SchemaValidatorFactoryType & factory
Definition: schema.h:370
ISchemaValidator ** validators
Definition: schema.h:377

◆ ~SchemaValidationContext()

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  }
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
SizeType patternPropertiesValidatorCount
Definition: schema.h:380
virtual void DestroySchemaValidator(ISchemaValidator *validator)=0
ISchemaValidator ** patternPropertiesValidators
Definition: schema.h:379
virtual void DestroryHasher(void *hasher)=0
virtual void FreeState(void *p)=0
SchemaValidatorFactoryType & factory
Definition: schema.h:370
ISchemaValidator ** validators
Definition: schema.h:377

Member Data Documentation

◆ arrayElementHashCodes

void* arrayElementHashCodes

Definition at line 376 of file schema.h.

◆ arrayElementIndex

SizeType arrayElementIndex

Definition at line 385 of file schema.h.

◆ arrayUniqueness

bool arrayUniqueness

Definition at line 389 of file schema.h.

◆ error_handler

ErrorHandlerType& error_handler

Definition at line 371 of file schema.h.

◆ factory

Definition at line 370 of file schema.h.

◆ hasher

void* hasher

Definition at line 375 of file schema.h.

◆ inArray

bool inArray

Definition at line 387 of file schema.h.

◆ invalidKeyword

const Ch* invalidKeyword

Definition at line 374 of file schema.h.

◆ objectPatternValidatorType

PatternValidatorType objectPatternValidatorType

Definition at line 384 of file schema.h.

◆ patternPropertiesSchemaCount

SizeType patternPropertiesSchemaCount

Definition at line 382 of file schema.h.

◆ patternPropertiesSchemas

const SchemaType** patternPropertiesSchemas

Definition at line 381 of file schema.h.

◆ patternPropertiesValidatorCount

SizeType patternPropertiesValidatorCount

Definition at line 380 of file schema.h.

◆ patternPropertiesValidators

ISchemaValidator** patternPropertiesValidators

Definition at line 379 of file schema.h.

◆ propertyExist

bool* propertyExist

Definition at line 386 of file schema.h.

◆ schema

const SchemaType* schema

Definition at line 372 of file schema.h.

◆ validatorCount

SizeType validatorCount

Definition at line 378 of file schema.h.

◆ validators

ISchemaValidator** validators

Definition at line 377 of file schema.h.

◆ valuePatternValidatorType

PatternValidatorType valuePatternValidatorType

Definition at line 383 of file schema.h.

◆ valueSchema

const SchemaType* valueSchema

Definition at line 373 of file schema.h.

◆ valueUniqueness

bool valueUniqueness

Definition at line 388 of file schema.h.


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