com.github.fge.jsonschema.keyword.validator
Interface KeywordValidator

All Known Implementing Classes:
AbstractKeywordValidator, AdditionalItemsValidator, AdditionalPropertiesValidator, AllOfValidator, AnyOfValidator, DependenciesValidator, DisallowKeywordValidator, DivisibleByValidator, DivisorValidator, DraftV3TypeKeywordValidator, DraftV3TypeValidator, DraftV4TypeValidator, EnumValidator, Example9.DivisorsKeywordValidator, ExtendsValidator, MaximumValidator, MaxItemsValidator, MaxLengthValidator, MaxPropertiesValidator, MinimumValidator, MinItemsValidator, MinLengthValidator, MinPropertiesValidator, MultipleOfValidator, NotValidator, NumericValidator, OneOfValidator, PatternValidator, PositiveIntegerValidator, PropertiesValidator, RequiredKeywordValidator, SchemaArrayValidator, UniqueItemsValidator

public interface KeywordValidator

Interface for a keyword validator

Some keywords may have to ask the validation process to validate some subschemas for them -- and in fact, some keywords, such as allOf, not or extends, for instance, do this exclusively.

Therefore they are passed the main validator (as a Processor as an argument. They take the responsibility of building the appropriate FullData and calling the processor again.


Method Summary
 void validate(Processor<FullData,FullData> processor, ProcessingReport report, MessageBundle bundle, FullData data)
          Validate the instance
 

Method Detail

validate

void validate(Processor<FullData,FullData> processor,
              ProcessingReport report,
              MessageBundle bundle,
              FullData data)
              throws ProcessingException
Validate the instance

Parameters:
processor - the main validation processor
report - the report to use
bundle - the message bundle to use
data - the validation data
Throws:
InvalidInstanceException - instance is invalid, and the report has been configured to throw an exception instead of logging errors
ProcessingException