com.github.fge.jsonschema.processors.validation
Class ValidationChain
java.lang.Object
com.github.fge.jsonschema.processors.validation.ValidationChain
- All Implemented Interfaces:
- com.github.fge.jsonschema.core.processing.Processor<SchemaContext,ValidatorList>
public final class ValidationChain
- extends Object
- implements com.github.fge.jsonschema.core.processing.Processor<SchemaContext,ValidatorList>
A validation chain
This processor performs the following:
- perform reference lookup then syntax validation;
- throw an exception if the previous step fails;
- then perform schema digesting and keyword building.
A validation chain handles one schema version. Switching schema versions
is done by ValidationProcessor
.
ValidationChain
public ValidationChain(com.github.fge.jsonschema.core.load.RefResolver refResolver,
Library library,
ValidationConfiguration cfg)
process
public ValidatorList process(com.github.fge.jsonschema.core.report.ProcessingReport report,
SchemaContext input)
throws com.github.fge.jsonschema.core.exceptions.ProcessingException
- Specified by:
process
in interface com.github.fge.jsonschema.core.processing.Processor<SchemaContext,ValidatorList>
- Throws:
com.github.fge.jsonschema.core.exceptions.ProcessingException
toString
public String toString()
- Overrides:
toString
in class Object