You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Michael Dürig (JIRA)" <ji...@apache.org> on 2012/12/07 17:53:21 UTC
[jira] [Commented] (OAK-205) Redefined Tree#getChild(String name)
to #getTree(String relativePath)
[ https://issues.apache.org/jira/browse/OAK-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13526536#comment-13526536 ]
Michael Dürig commented on OAK-205:
-----------------------------------
This should be fixed through the introduction of {{TreeLocation}} in OAK-275.
> Redefined Tree#getChild(String name) to #getTree(String relativePath)
> ---------------------------------------------------------------------
>
> Key: OAK-205
> URL: https://issues.apache.org/jira/browse/OAK-205
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: core
> Reporter: angela
>
> currently the API defines the following to methods to access a Tree:
> - Root#getTree(String path)
> - Tree#getChild(String name)
> the method on Root is current implemented by traversing the hierarchy (calling
> Tree#getChild for all elements in the given path. that will not work in
> situations where a parent is not accessible. similarly getChild only allows
> to access a direct child.
> i would suggest to redefine Tree#getChild to take a relative path or to
> change the method to something like #getTree(String relativePath).
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira