com.github.fge.jsonschema.processors.validation
Class InstanceValidator

java.lang.Object
  extended by 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).


Constructor Summary
InstanceValidator(MessageBundle syntaxMessages, MessageBundle validationMessages, Processor<SchemaContext,ValidatorList> keywordBuilder)
          Constructor -- do not use directly!
 
Method Summary
 FullData process(ProcessingReport report, FullData input)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InstanceValidator

public InstanceValidator(MessageBundle syntaxMessages,
                         MessageBundle validationMessages,
                         Processor<SchemaContext,ValidatorList> keywordBuilder)
Constructor -- do not use directly!

Parameters:
syntaxMessages - the syntax message bundle
validationMessages - the validation message bundle
keywordBuilder - the keyword builder
Method Detail

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