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) |
ResolvingSchemaWalker(SchemaTree tree,
SchemaWalkingConfiguration cfg) |
| 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, SchemaWalkingConfiguration cfg)
public ResolvingSchemaWalker(SchemaTree tree)
public <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.