Class JCRLocalDropboxDrive.MetadataInfo

    • Constructor Detail

      • MetadataInfo

        protected MetadataInfo()
    • Method Detail

      • splitPath

        protected String[] splitPath​(String path)
        Split given Dropbox path on parent path and a name.
        Parameters:
        path - the path
        Returns:
        the arrays of strings with parent path and name, parent can be null if it's root
      • getParentPathDisplay

        protected final String getParentPathDisplay()
        Gets the parent path display.
        Returns:
        the parent path display
      • getParentPath

        protected final String getParentPath()
        Gets the parent path (in lower case as used in SDK).
        Returns:
        the parent path in lower case
      • getName

        protected final String getName()
        Gets the name (in lower case as in SDK path). It can differ with getTitle().
        Returns:
        the name
      • isRoot

        protected final boolean isRoot()
        Checks if is root.
        Returns:
        true, if is root
      • isFolder

        protected abstract boolean isFolder()
        Checks if is folder.
        Returns:
        true, if is folder or root of the drive
      • isFile

        protected abstract boolean isFile()
        Checks if is file.
        Returns:
        true, if is file
      • isItem

        protected abstract boolean isItem()
        Checks if is item.
        Returns:
        true, if is item
      • isDeleted

        protected abstract boolean isDeleted()
        Checks if is deleted.
        Returns:
        true, if is deleted
      • getTitle

        protected abstract String getTitle()
        Gets the title displayed to users.
        Returns:
        the title
      • getPath

        protected abstract String getPath()
        Gets the lower path.
        Returns:
        the lower path
      • getPathDisplay

        protected abstract String getPathDisplay()
        Gets the display path.
        Returns:
        the display path