Package com.dropbox.core.v1
Class DbxEntry
- java.lang.Object
- 
- com.dropbox.core.util.Dumpable
- 
- com.dropbox.core.v1.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
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classDbxEntry.FileThe subclass ofDbxEntryused to represent file metadata (as opposed to folder metadata).static classDbxEntry.FolderThe subclass ofDbxEntryused to represent folder metadata.static classDbxEntry.WithChildrenHolds 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 classDbxEntry.WithChildrenC<C>The more general case ofDbxEntry.WithChildren.
 - 
Field SummaryFields Modifier and Type Field Description java.lang.StringiconNameThe name of the icon to use for this file.booleanmightHaveThumbnailWhether this file or folder might have a thumbnail image you can retrieve via theDbxClientV1.getThumbnailcall.java.lang.StringnameJust the last part ofpath.java.lang.StringpathThe path to the file or folder, relative to your application's root.static JsonReader<DbxEntry>Readerstatic JsonReader<DbxEntry>ReaderMaybeDeletedstatic longserialVersionUID
 - 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract 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 voiddumpFields(DumpWriter w)abstract 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 booleanpartialEquals(DbxEntry o)protected intpartialHashCode()static <C> DbxEntry.WithChildrenC<C>read(com.fasterxml.jackson.core.JsonParser parser, Collector<DbxEntry,? extends C> collector)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.DumpablegetTypeName, toString, toString, toStringMultiline, toStringMultiline
 
- 
 
- 
- 
- 
Field Detail- 
serialVersionUIDpublic static final long serialVersionUID - See Also:
- Constant Field Values
 
 - 
namepublic final java.lang.String name - See Also:
- DbxPathV1.getName(java.lang.String)
 
 - 
pathpublic 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. 
 - 
iconNamepublic 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/metadataHTTP endpoint.
 - 
mightHaveThumbnailpublic final boolean mightHaveThumbnail Whether 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.
 - 
Readerpublic static final JsonReader<DbxEntry> Reader 
 - 
ReaderMaybeDeletedpublic static final JsonReader<DbxEntry> ReaderMaybeDeleted 
 
- 
 - 
Method Detail- 
dumpFieldsprotected void dumpFields(DumpWriter w) - Specified by:
- dumpFieldsin class- Dumpable
 
 - 
isFolderpublic 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.)
 - 
isFilepublic 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.)
 - 
asFolderpublic abstract DbxEntry.Folder asFolder() If this metadata entry is a folder, return it as aDbxEntry.Folderinstance. If it's not a folder, returnnull.
 - 
asFilepublic abstract DbxEntry.File asFile() If this metadata entry is a file, return it as aDbxEntry.Fileinstance. If it's not a file, returnnull.
 - 
partialEqualsprotected boolean partialEquals(DbxEntry o) 
 - 
partialHashCodeprotected int partialHashCode() 
 - 
readMaybeDeletedpublic static <C> DbxEntry.WithChildrenC<C> readMaybeDeleted(com.fasterxml.jackson.core.JsonParser parser, Collector<DbxEntry,? extends C> collector) throws java.io.IOException, JsonReadException - Throws:
- java.io.IOException
- JsonReadException
 
 - 
readpublic static <C> DbxEntry.WithChildrenC<C> read(com.fasterxml.jackson.core.JsonParser parser, Collector<DbxEntry,? extends C> collector) throws java.io.IOException, JsonReadException - Throws:
- java.io.IOException
- JsonReadException
 
 
- 
 
-