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 java.lang.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 java.lang.Object
        Returns:
        string representation of this item