com.github.fge.jsonschema.processors.validation
Class InstanceValidator
java.lang.Object
com.github.fge.jsonschema.processors.validation.InstanceValidator
- All Implemented Interfaces:
- Processor<FullData,FullData>
@NotThreadSafe
@ParametersAreNonnullByDefault
public final class InstanceValidator
- extends Object
- implements Processor<FullData,FullData>
Processor for validating one schema/instance pair
One such processor is created for each schema/instance validation.
Internally, all validation operations provided by the API (whether that
be a JsonSchema
, via JsonValidator
or using ValidationProcessor
directly) will eventually instantiate one of these. More
precisely, this is instantiated by ValidationProcessor.process(ProcessingReport, FullData)
.
InstanceValidator
public InstanceValidator(MessageBundle syntaxMessages,
MessageBundle validationMessages,
Processor<SchemaContext,ValidatorList> keywordBuilder)
- Constructor -- do not use directly!
- Parameters:
syntaxMessages
- the syntax message bundlevalidationMessages
- the validation message bundlekeywordBuilder
- the keyword builder
process
public FullData process(ProcessingReport report,
FullData input)
throws ProcessingException
- Specified by:
process
in interface Processor<FullData,FullData>
- Throws:
ProcessingException
toString
public String toString()
- Overrides:
toString
in class Object