T - the value type produced by this listenerpublic interface SchemaListener<T>
This is the main working part of a walking process. A SchemaWalker
will invoke a listener at various points in time when it walks the schema.
All methods can throw a ProcessingException if you choose to
abort processing due to an anomalous condition.
| Modifier and Type | Method and Description |
|---|---|
T |
getValue()
Return the value produced by this listener
|
void |
onExit()
Method called when the walking process is done walking the tree
|
void |
onInit(SchemaTree tree)
Method called before schema walking commences
|
void |
onNewTree(SchemaTree oldTree,
SchemaTree newTree)
Method called when the walking process changes trees
|
void |
onPopd()
Method called when the walking process exits a subtree
|
void |
onPushd(JsonPointer pointer)
Method called when the walker changes pointer into the current tree
|
void |
onWalk(SchemaTree tree)
Method called when the current tree node is walked
|
void onInit(SchemaTree tree) throws ProcessingException
tree - the walked schema treeProcessingException - processing failurevoid onNewTree(SchemaTree oldTree, SchemaTree newTree) throws ProcessingException
oldTree - the old treenewTree - the new treeProcessingException - processing failureResolvingSchemaWalkervoid onPushd(JsonPointer pointer) throws ProcessingException
pointer - the relative pointer into the treeProcessingException - processing failurevoid onWalk(SchemaTree tree) throws ProcessingException
tree - the current treeProcessingException - processing failurevoid onPopd()
throws ProcessingException
ProcessingException - processing failurevoid onExit()
throws ProcessingException
ProcessingException - processing failureT getValue()
Copyright © 2013. All Rights Reserved.