com.github.fge.jsonschema.processors.format
Class FormatProcessor

java.lang.Object
  extended by com.github.fge.jsonschema.processors.format.FormatProcessor
All Implemented Interfaces:
Processor<ValidatorList,ValidatorList>

public final class FormatProcessor
extends Object
implements Processor<ValidatorList,ValidatorList>

Format attribute handler

This processor is run after ValidatorBuilder if and only if the user has chosen to perform format validation (it is enabled by default).

It will append a specific KeywordValidator to the list of already existing validators if and only if:

Note that it will warn if the format attribute is not recognized.


Constructor Summary
FormatProcessor(Library library, ValidationConfiguration cfg)
           
 
Method Summary
 ValidatorList process(ProcessingReport report, ValidatorList input)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FormatProcessor

public FormatProcessor(Library library,
                       ValidationConfiguration cfg)
Method Detail

process

public ValidatorList process(ProcessingReport report,
                             ValidatorList input)
                      throws ProcessingException
Specified by:
process in interface Processor<ValidatorList,ValidatorList>
Throws:
ProcessingException

toString

public String toString()
Overrides:
toString in class Object