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
        depth of this item
        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.

        toString in class Object
        string representation of this item