com.github.fge.jsonschema.core.load
Class RefResolver

java.lang.Object
  extended by com.github.fge.jsonschema.core.processing.RawProcessor<SchemaTree,SchemaTree>
      extended by com.github.fge.jsonschema.core.load.RefResolver
All Implemented Interfaces:
Processor<ValueHolder<SchemaTree>,ValueHolder<SchemaTree>>

public final class RefResolver
extends RawProcessor<SchemaTree,SchemaTree>

JSON Reference processor

This is the first, and probably the most important, processor to run in the validation chain.

Its role is to resolve all JSON References until a final document is reached. It will throw an exception if a JSON Reference loop is detected, or if a JSON Reference does not resolve.

It relies on a SchemaLoader to load JSON References which are not resolvable within the current schema itself.


Constructor Summary
RefResolver(SchemaLoader loader)
           
 
Method Summary
 SchemaTree rawProcess(ProcessingReport report, SchemaTree input)
          Process a raw input, return a raw output
 String toString()
           
 
Methods inherited from class com.github.fge.jsonschema.core.processing.RawProcessor
newMessage, process
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RefResolver

public RefResolver(SchemaLoader loader)
Method Detail

rawProcess

public SchemaTree rawProcess(ProcessingReport report,
                             SchemaTree input)
                      throws ProcessingException
Description copied from class: RawProcessor
Process a raw input, return a raw output

Specified by:
rawProcess in class RawProcessor<SchemaTree,SchemaTree>
Parameters:
report - the report to use
input - the raw input
Returns:
the raw output
Throws:
ProcessingException - processing failure
See Also:
RawProcessor.newMessage(Object)

toString

public String toString()
Overrides:
toString in class Object