Class AbstractItem

    • Constructor Detail

      • AbstractItem

        public AbstractItem()
    • Method Detail

      • getDepth

        public int getDepth()
                     throws RepositoryException
        Returns the depth of this item.

        The default implementation determines the depth by counting the slashes in the path returned by Item.getPath().

        Specified by:
        getDepth in interface Item
        Returns:
        depth of this item
        Throws:
        RepositoryException - if an error occurs
      • toString

        public String toString()
        Returns a string representation of this item.

        The default implementation returns the path of this item and falls back to the Object.toString() implementation if the item path can not be retrieved.

        Overrides:
        toString in class Object
        Returns:
        string representation of this item