public final class FileType
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static FileType |
FILE
A regular file.
|
static FileType |
FILE_OR_FOLDER
A file or folder.
|
static FileType |
FOLDER
A folder.
|
static FileType |
IMAGINARY
A file that does not exist.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Returns the name of this type.
|
boolean |
hasAttributes()
Returns true if files of this type may have attributes.
|
boolean |
hasChildren()
Returns true if files of this type may contain other files.
|
boolean |
hasContent()
Returns true if files of this type may have data content.
|
java.lang.String |
toString()
Returns the name of this type.
|
public static final FileType FOLDER
public static final FileType FILE
public static final FileType FILE_OR_FOLDER
public static final FileType IMAGINARY
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getName()
public boolean hasChildren()
public boolean hasContent()
public boolean hasAttributes()