public final class ResolvingSchemaWalker extends SchemaWalker
Unlike SimpleSchemaWalker, this schema walker will attempt to
resolve a JSON Reference when it sees one; it also performs syntax checking
on new trees.
It also prevents information loss or infinite walking. The first event can happen if a JSON Reference resolves to an immediate child of the current tree (in which case all other children would be ignored), the second can happen if the reference resolves to a parent of the current tree.
tree| Constructor and Description |
|---|
ResolvingSchemaWalker(SchemaTree tree,
Dictionary<PointerCollector> collectors,
Dictionary<SyntaxChecker> checkers,
LoadingConfiguration cfg)
Fully customized schema walker
|
ResolvingSchemaWalker(SchemaTree tree,
SchemaVersion version)
Schema walker for a given version and with a default loading
configuration
|
ResolvingSchemaWalker(SchemaTree tree,
SchemaVersion version,
LoadingConfiguration cfg)
Constructor for a given schema version
|
| Modifier and Type | Method and Description |
|---|---|
<T> void |
resolveTree(SchemaListener<T> listener,
ProcessingReport report)
Change the current tree to another tree, if any
|
String |
toString() |
walkpublic ResolvingSchemaWalker(SchemaTree tree, SchemaVersion version, LoadingConfiguration cfg)
tree - the starting schema treeversion - the schema versioncfg - the listening configurationpublic ResolvingSchemaWalker(SchemaTree tree, SchemaVersion version)
tree - the schema treeversion - the schema versionpublic ResolvingSchemaWalker(SchemaTree tree, Dictionary<PointerCollector> collectors, Dictionary<SyntaxChecker> checkers, LoadingConfiguration cfg)
tree - the schema treecollectors - the pointer collectors dictionarycheckers - the syntax checkers dictionarycfg - the loading configurationpublic <T> void resolveTree(SchemaListener<T> listener, ProcessingReport report) throws ProcessingException
SchemaWalkerresolveTree in class SchemaWalkerT - type of value produced by the listenerlistener - the listenerreport - the reportProcessingException - processing failureResolvingSchemaWalkerpublic String toString()
toString in class SchemaWalkerCopyright © 2013. All Rights Reserved.