jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "angela (JIRA)" <j...@apache.org>
Subject [jira] [Created] (OAK-205) Redefined Tree#getChild(String name) to #getTree(String relativePath)
Date Tue, 24 Jul 2012 10:16:33 GMT
angela created OAK-205:
--------------------------

             Summary: 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message