public interface NavigateAction<M extends Map<String,Object>,L extends List<Object>>
M
while navigating its branches.
See package-info for more details
Modifier and Type | Method and Description |
---|---|
void |
end()
called after all navigation ends, and just before the navigation method exits
|
boolean |
failFast(String path,
Exception e)
called if navigation of a path throws an exception
|
boolean |
failSilently(String path,
Exception e)
called if navigation of a path throws an exception
|
void |
foundLeafBeforePathEnd(TreePath jp,
Object obj)
reached leaf node (not a container) in source but specified path expects children -
the specified path does not exist in the source
|
void |
handleLeaf(TreePath tp,
int arrIndex,
Object arrItem)
called when a leaf in a L is reached.
|
void |
handleLeaf(TreePath tp,
Object value)
called when a leaf node is reached in a M.
|
void |
pathEnd(String path)
called after the navigation of a path ends
|
boolean |
pathStart(String path)
called before navigation of a new path starts
|
void |
pathTailNotFound(TreePath tp,
Object source)
reached end of branch in source before end of specified path -
the specified path does not exist in the source
|
void |
recurEnd(TreePath tp,
L l)
called when navigation of an
L type object ends |
void |
recurEnd(TreePath tp,
M m)
called when navigation of an
M type object ends |
boolean |
recurInto(TreePath tp,
L sourceNode)
called when an array node is encountered on the path
|
boolean |
recurInto(TreePath tp,
M sourceNode)
called when an object node is encountered on the path
|
Object |
result()
holds the result of the navigation, as assigned by the action implementing this interface
|
boolean |
start(M objectToNavigate,
Collection<String> pathsToNavigate)
called before any navigation of the
M starts |
boolean pathStart(String path)
boolean start(M objectToNavigate, Collection<String> pathsToNavigate)
M
startsvoid pathTailNotFound(TreePath tp, Object source)
void pathEnd(String path)
boolean failSilently(String path, Exception e)
boolean failFast(String path, Exception e)
boolean recurInto(TreePath tp, M sourceNode)
boolean recurInto(TreePath tp, L sourceNode)
void foundLeafBeforePathEnd(TreePath jp, Object obj)
void handleLeaf(TreePath tp, Object value)
tp
- - the JsonPath pointing to the leafvoid handleLeaf(TreePath tp, int arrIndex, Object arrItem)
arrIndex
- - the index of the item in the LarrItem
- - the itemvoid recurEnd(TreePath tp, M m)
M
type object endstp
- the path pointing to the objectvoid recurEnd(TreePath tp, L l)
L
type object endstp
- the path pointing to the objectvoid end()
Object result()
Copyright © 2020 Chemouni Uriel. All rights reserved.