| java.lang.Object org.apache.commons.vfs.FileType
FileType | final public class FileType (Code) | | An enumerated type that represents a file's type.
author: Adam Murdoch version: $Revision: 480428 $ $Date: 2006-11-28 22:15:24 -0800 (Tue, 28 Nov 2006) $ |
Method Summary | |
public String | getName() Returns the name of this type. | public boolean | hasAttributes() Returns true if files of this type may have attributes. | public boolean | hasChildren() Returns true if files of this type may contain other files. | public boolean | hasContent() Returns true if files of this type may have data content. | public String | toString() Returns the name of this type. |
FILE | final public static FileType FILE(Code) | | A regular file. May have data content and attributes, but cannot
contain other files.
|
FILE_OR_FOLDER | final public static FileType FILE_OR_FOLDER(Code) | | A file or folder. May have data content and attributes, and can
contain other files.
|
FOLDER | final public static FileType FOLDER(Code) | | A folder. May contain other files, and have attributes, but does not
have any data content.
|
IMAGINARY | final public static FileType IMAGINARY(Code) | | A file that does not exist. May not have data content, attributes,
or contain other files.
|
getName | public String getName()(Code) | | Returns the name of this type.
|
hasAttributes | public boolean hasAttributes()(Code) | | Returns true if files of this type may have attributes.
|
hasChildren | public boolean hasChildren()(Code) | | Returns true if files of this type may contain other files.
|
hasContent | public boolean hasContent()(Code) | | Returns true if files of this type may have data content.
|
toString | public String toString()(Code) | | Returns the name of this type.
|
|
|