Class HierarchicalContentProxy

    • Method Detail

      • getNode

        public IHierarchicalContentNode getNode​(java.lang.String relativePath)
                                         throws java.lang.IllegalArgumentException
        Description copied from interface: IHierarchicalContent
        Returns node with specified relativePath starting from root node. If the path is null or an empty string then the root node is returned.
        Specified by:
        getNode in interface IHierarchicalContent
        Throws:
        java.lang.IllegalArgumentException - if resource with given relativePath doesn't exist under the root of this content.
      • tryGetNode

        public IHierarchicalContentNode tryGetNode​(java.lang.String relativePath)
        Description copied from interface: IHierarchicalContent
        Returns node with specified relativePath starting from root node, or null, if this path does not exist. If the path is null or an empty string then the root node is returned.
        Specified by:
        tryGetNode in interface IHierarchicalContent
      • listMatchingNodes

        public java.util.List<IHierarchicalContentNode> listMatchingNodes​(java.lang.String startingPath,
                                                                          java.lang.String fileNamePattern)
        Description copied from interface: IHierarchicalContent
        Returns list of all file nodes in this hierarchy starting from startingPath with file names matching given fileNamePattern.
        Specified by:
        listMatchingNodes in interface IHierarchicalContent
        Parameters:
        startingPath - Relative path from which the search should start. Use empty string to start in root.
      • close

        public void close()
        Description copied from interface: IHierarchicalContent
        Cleans resources (e.g. releases locks) acquired to access this hierarchical content.

        For now accessing IHierarchicalContentNode from a closed content doesn't fail immediately but it is unpredictable (e.g. files may no longer be accessible). One shouldn't call any methods of IHierarchicalContentNode-s that were acquired from a content which is closed at the time of invocation of the methods. In future version such operations will fail immediately.

        Specified by:
        close in interface IHierarchicalContent
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object