Package com.dropbox.core.v1
Class DbxEntry
java.lang.Object
com.dropbox.core.util.Dumpable
com.dropbox.core.v1.DbxEntry
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DbxEntry.File,DbxEntry.Folder
Holds the metadata for a Dropbox file system entry. Can either be a regular file or a folder.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe subclass ofDbxEntryused to represent file metadata (as opposed to folder metadata).static final classThe subclass ofDbxEntryused to represent folder metadata.static final classHolds the metadata for a file or folder; if it's a folder, we also store the folder's hash and the metadata of its immediate children.static final classThe more general case ofDbxEntry.WithChildren. -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal StringThe name of the icon to use for this file.final booleanWhether this file or folder might have a thumbnail image you can retrieve via theDbxClientV1.getThumbnailcall.final StringJust the last part ofpath.final StringThe path to the file or folder, relative to your application's root.static final JsonReader<DbxEntry> static final JsonReader<DbxEntry> static final long -
Method Summary
Modifier and TypeMethodDescriptionabstract DbxEntry.FileasFile()If this metadata entry is a file, return it as aDbxEntry.Fileinstance.abstract DbxEntry.FolderasFolder()If this metadata entry is a folder, return it as aDbxEntry.Folderinstance.protected voidabstract booleanisFile()Whether this metadata is for a file, which can be cast to typeDbxEntry.File.abstract booleanisFolder()Whether this metadata is for a folder, which can be cast to typeDbxEntry.Folder.protected booleanprotected intstatic <C> DbxEntry.WithChildrenC<C> static <C> DbxEntry.WithChildrenC<C> readMaybeDeleted(com.fasterxml.jackson.core.JsonParser parser, Collector<DbxEntry, ? extends C> collector) Methods inherited from class com.dropbox.core.util.Dumpable
getTypeName, toString, toString, toStringMultiline, toStringMultiline
-
Field Details
-
serialVersionUID
public static final long serialVersionUID- See Also:
-
name
- See Also:
-
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
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/metadataHTTP endpoint. -
mightHaveThumbnail
public final boolean mightHaveThumbnailWhether this file or folder might have a thumbnail image you can retrieve via theDbxClientV1.getThumbnailcall. If this istrue, there might be a thumbnail available. If this isfalse, there is definitely no thumbnail available. -
Reader
-
ReaderMaybeDeleted
-
-
Method Details
-
dumpFields
- Specified by:
dumpFieldsin classDumpable
-
isFolder
public abstract boolean isFolder()Whether this metadata is for a folder, which can be cast to typeDbxEntry.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 typeDbxEntry.File. (Every metadata object is either for a file or a folder.) -
asFolder
If this metadata entry is a folder, return it as aDbxEntry.Folderinstance. If it's not a folder, returnnull. -
asFile
If this metadata entry is a file, return it as aDbxEntry.Fileinstance. If it's not a file, returnnull. -
partialEquals
-
partialHashCode
protected int partialHashCode() -
readMaybeDeleted
public static <C> DbxEntry.WithChildrenC<C> readMaybeDeleted(com.fasterxml.jackson.core.JsonParser parser, Collector<DbxEntry, ? extends C> collector) throws IOException, JsonReadException- Throws:
IOExceptionJsonReadException
-
read
public static <C> DbxEntry.WithChildrenC<C> read(com.fasterxml.jackson.core.JsonParser parser, Collector<DbxEntry, ? extends C> collector) throws IOException, JsonReadException- Throws:
IOExceptionJsonReadException
-