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, extract
dump, dump, dump, dump, dump, toStringDate, toStringMultiline, toStringMultiline
public static final long serialVersionUID
public DbxEntry.Folder(String path, String iconName, boolean mightHaveThumbnail)
path
- DbxEntry.path
iconName
- DbxEntry.iconName
mightHaveThumbnail
- DbxEntry.mightHaveThumbnail
protected String getTypeName()
getTypeName
in class DbxDataObject
public String toString()
DbxDataObject.toStringMultiline()
. Only includes the path.public boolean isFolder()
DbxEntry
DbxEntry.Folder
. (Every metadata object is either for a file or a folder.)public boolean isFile()
DbxEntry
DbxEntry.File
. (Every metadata object is either for a file or a folder.)public DbxEntry.Folder asFolder()
DbxEntry
DbxEntry.Folder
instance. If it's not a folder, return null
.public DbxEntry.File asFile()
DbxEntry
DbxEntry.File
instance. If it's not a file, return null
.Copyright © 2013. All rights reserved.