Class TreeNode

    • Constructor Detail

      • TreeNode

        public TreeNode​(String path)
    • Method Detail

      • addPackage

        public boolean addPackage​(org.apache.jackrabbit.vault.packaging.JcrPackage jcrPackage)
                           throws javax.jcr.RepositoryException
        adds a package or the appropriate folder to the nodes children if it is a child of this node
        Parameters:
        jcrPackage - the current package in the iteration
        Returns:
        true, if this package is the nodes target and a leaf - iteration can be stopped
        Throws:
        javax.jcr.RepositoryException
      • isLeaf

        public boolean isLeaf()
      • sort

        public void sort()
      • toJson

        public void toJson​(com.google.gson.stream.JsonWriter writer)
                    throws IOException,
                           javax.jcr.RepositoryException
        Throws:
        IOException
        javax.jcr.RepositoryException