- All Known Subinterfaces:
JSONNavigateAction
- All Known Implementing Classes:
CopyPathsAction
An interface for a processing action on the nodes of a
NavigateAction while navigating its branches.
See package-info for more details
- Since:
- 15 June 2016
- Author:
- adoneitan@gmail.com
-
Method Summary
Modifier and TypeMethodDescriptionvoidend()called after all navigation ends, and just before the navigation method exitsbooleancalled if navigation of a path throws an exceptionbooleanfailSilently(String path, Exception e) called if navigation of a path throws an exceptionvoidfoundLeafBeforePathEnd(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 sourcevoidhandleLeaf(TreePath tp, int arrIndex, Object arrItem) called when a leaf in a L is reached.voidhandleLeaf(TreePath tp, Object value) called when a leaf node is reached in a M.voidcalled after the navigation of a path endsbooleancalled before navigation of a new path startsvoidpathTailNotFound(TreePath tp, Object source) reached end of branch in source before end of specified path - the specified path does not exist in the sourcevoidcalled when navigation of anNavigateActiontype object endsvoidcalled when navigation of anNavigateActiontype object endsbooleancalled when an array node is encountered on the pathbooleancalled when an object node is encountered on the pathresult()holds the result of the navigation, as assigned by the action implementing this interfacebooleanstart(M objectToNavigate, Collection<String> pathsToNavigate) called before any navigation of theNavigateActionstarts
-
Method Details
-
pathStart
called before navigation of a new path starts- Parameters:
path- TODO- Returns:
- true if the specified path should be navigated
-
start
called before any navigation of theNavigateActionstarts- Parameters:
objectToNavigate- TODOpathsToNavigate- TODO- Returns:
- true if navigation should start at all
-
pathTailNotFound
-
pathEnd
-
failSilently
-
failFast
-
recurInto
-
recurInto
-
foundLeafBeforePathEnd
-
handleLeaf
-
handleLeaf
-
recurEnd
called when navigation of anNavigateActiontype object ends- Parameters:
tp- the path pointing to the objectm- TODO
-
recurEnd
called when navigation of anNavigateActiontype object ends- Parameters:
tp- the path pointing to the objectl- TODO
-
end
void end()called after all navigation ends, and just before the navigation method exits -
result
Object result()holds the result of the navigation, as assigned by the action implementing this interface- Returns:
- - result
-