java.lang.Object
net.minidev.json.actions.navigate.TreeNavigator<M,L>
- Direct Known Subclasses:
JSONNavigator
Navigates only the branches of a
JSONObject corresponding to the paths specified.
For each specified path to navigate, the TreeNavigator only traverses the matching
branch.
The navigator accepts an action and provides callback hooks for it to act on the traversed
nodes at each significant step. See NavigateAction.
See package-info for more details
Example:
To navigate the branch k1.k2 of the object {"k1":{"k2":"v1"}, "k3":{"k4":"v2"}} instantiate the navigator like so: new JSONNavigator("k1.k2")
- Since:
- 15 June 2016.
- Author:
- adoneitan@gmail.com
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTreeNavigator(NavigateAction<M, L> action, String... pathsToNavigate) TreeNavigator(NavigateAction<M, L> action, List<String> pathsToNavigate) -
Method Summary
-
Field Details
-
action
-
pathPrefix
-
Constructor Details
-
Method Details
-
with
-