com.github.fge.jsonschema.core.load
Class RefResolver
java.lang.Object
com.github.fge.jsonschema.core.processing.RawProcessor<SchemaTree,SchemaTree>
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.
RefResolver
public RefResolver(SchemaLoader loader)
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 useinput - 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