Class DbxEntry

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    DbxEntry.File, DbxEntry.Folder

    public abstract class DbxEntry
    extends Dumpable
    implements java.io.Serializable
    Holds the metadata for a Dropbox file system entry. Can either be a regular file or a folder.
    See Also:
    Serialized Form
    • Field Detail

      • path

        public final java.lang.String path
        The path to the file or folder, relative to your application's root. The path always starts with a "/".

        For full-Dropbox apps, the path is relative to the root of the user's Dropbox. For App Folder apps, the path is relative to your application's App Folder within the user's Dropbox.

      • iconName

        public final java.lang.String iconName
        The name of the icon to use for this file. The set of names returned by this call match up with icons in a set of icons provided by Dropbox. Read more about the icon field in Dropbox's documentation for the /metadata HTTP endpoint.
      • mightHaveThumbnail

        public final boolean mightHaveThumbnail
        Whether this file or folder might have a thumbnail image you can retrieve via the DbxClientV1.getThumbnail call. If this is true, there might be a thumbnail available. If this is false, there is definitely no thumbnail available.
    • Method Detail

      • isFolder

        public abstract boolean isFolder()
        Whether this metadata is for a folder, which can be cast to type DbxEntry.Folder. (Every metadata object is either for a file or a folder.)
      • isFile

        public abstract boolean isFile()
        Whether this metadata is for a file, which can be cast to type DbxEntry.File. (Every metadata object is either for a file or a folder.)
      • asFolder

        public abstract DbxEntry.Folder asFolder()
        If this metadata entry is a folder, return it as a DbxEntry.Folder instance. If it's not a folder, return null.
      • asFile

        public abstract DbxEntry.File asFile()
        If this metadata entry is a file, return it as a DbxEntry.File instance. If it's not a file, return null.
      • partialEquals

        protected boolean partialEquals​(DbxEntry o)
      • partialHashCode

        protected int partialHashCode()