public static final class DbxEntry.Folder extends DbxEntry
DbxEntry used to represent folder metadata. Folders
actually only have the same set of fields as DbxEntry.DbxEntry.File, DbxEntry.Folder, DbxEntry.WithChildren, DbxEntry.WithChildrenC<C>| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID |
| Constructor and Description |
|---|
DbxEntry.Folder(String path,
String iconName,
boolean mightHaveThumbnail) |
| Modifier and Type | Method and Description |
|---|---|
DbxEntry.File |
asFile()
If this metadata entry is a file, return it as a
DbxEntry.File
instance. |
DbxEntry.Folder |
asFolder()
If this metadata entry is a folder, return it as a
DbxEntry.Folder
instance. |
protected String |
getTypeName() |
boolean |
isFile()
Whether this metadata is for a file, which can be cast to type
DbxEntry.File. |
boolean |
isFolder()
Whether this metadata is for a folder, which can be cast to type
DbxEntry.Folder. |
String |
toString()
A abbreviated version of
DbxDataObject.toStringMultiline(). |
dumpFields, extractdump, dump, dump, dump, dump, toStringDate, toStringMultiline, toStringMultilinepublic static final long serialVersionUID
public DbxEntry.Folder(String path, String iconName, boolean mightHaveThumbnail)
path - DbxEntry.pathiconName - DbxEntry.iconNamemightHaveThumbnail - DbxEntry.mightHaveThumbnailprotected String getTypeName()
getTypeName in class DbxDataObjectpublic String toString()
DbxDataObject.toStringMultiline(). Only includes the path.public boolean isFolder()
DbxEntryDbxEntry.Folder. (Every metadata object is either for a file or a folder.)public boolean isFile()
DbxEntryDbxEntry.File. (Every metadata object is either for a file or a folder.)public DbxEntry.Folder asFolder()
DbxEntryDbxEntry.Folder
instance. If it's not a folder, return null.public DbxEntry.File asFile()
DbxEntryDbxEntry.File
instance. If it's not a file, return null.Copyright © 2013. All rights reserved.