com.github.fge.jsonschema.examples
Class Example9.DivisorsKeywordValidator

java.lang.Object
  extended by com.github.fge.jsonschema.keyword.validator.AbstractKeywordValidator
      extended by com.github.fge.jsonschema.examples.Example9.DivisorsKeywordValidator
All Implemented Interfaces:
KeywordValidator
Enclosing class:
Example9

public static final class Example9.DivisorsKeywordValidator
extends AbstractKeywordValidator

Custom keyword validator for Example9 It must be public because it is built by reflection.


Field Summary
 
Fields inherited from class com.github.fge.jsonschema.keyword.validator.AbstractKeywordValidator
keyword
 
Constructor Summary
Example9.DivisorsKeywordValidator(JsonNode digest)
           
 
Method Summary
 String toString()
           
 void validate(Processor<FullData,FullData> processor, ProcessingReport report, MessageBundle bundle, FullData data)
          Validate the instance
 
Methods inherited from class com.github.fge.jsonschema.keyword.validator.AbstractKeywordValidator
newMsg, newMsg, toArrayNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Example9.DivisorsKeywordValidator

public Example9.DivisorsKeywordValidator(JsonNode digest)
Method Detail

validate

public void validate(Processor<FullData,FullData> processor,
                     ProcessingReport report,
                     MessageBundle bundle,
                     FullData data)
              throws ProcessingException
Description copied from interface: KeywordValidator
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

toString

public String toString()
Specified by:
toString in class AbstractKeywordValidator