public final class RefResolver extends RawProcessor<SchemaTree,SchemaTree>
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 and Description |
---|
RefResolver(SchemaLoader loader) |
Modifier and Type | Method and Description |
---|---|
SchemaTree |
rawProcess(ProcessingReport report,
SchemaTree input)
Process a raw input, return a raw output
|
String |
toString() |
newMessage, process
public RefResolver(SchemaLoader loader)
public SchemaTree rawProcess(ProcessingReport report, SchemaTree input) throws ProcessingException
RawProcessor
rawProcess
in class RawProcessor<SchemaTree,SchemaTree>
report
- the report to useinput
- the raw inputProcessingException
- processing failureRawProcessor.newMessage(Object)