Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for obtaining a subtree within a View #71

Open
ceharris opened this issue Sep 11, 2018 · 0 comments
Open

Support for obtaining a subtree within a View #71

ceharris opened this issue Sep 11, 2018 · 0 comments

Comments

@ceharris
Copy link
Member

ceharris commented Sep 11, 2018

In some situations, you might have a View as input and desire to only work with a subtree of it with a view applicator. It would be helpful to a means of obtaining a (sub)View from a View, using a path.

e.g.

interface View {

  /**
   * Gets a subview from this view by traversing according to the specified path, which must 
   * terminate at either an <em>object</em> or an <em>array</em>.
   * @param path path to the subview, delimited using the '/' character
   * @return specified subview
   * @throws ViewException if the path cannot be fully traversed or does not end at an object or array
   */
  View subView(String path);

}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant