Package org.apache.commons.vfs
Class FileType
java.lang.Object
org.apache.commons.vfs.FileType
An enumerated type that represents a file's type.
- Version:
- $Revision: 480428 $ $Date: 2006-11-29 07:15:24 +0100 (Wed, 29 Nov 2006) $
- Author:
- Adam Murdoch
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Returns the name of this type.boolean
Returns true if files of this type may have attributes.boolean
Returns true if files of this type may contain other files.boolean
Returns true if files of this type may have data content.toString()
Returns the name of this type.
-
Field Details
-
FOLDER
A folder. May contain other files, and have attributes, but does not have any data content. -
FILE
A regular file. May have data content and attributes, but cannot contain other files. -
FILE_OR_FOLDER
A file or folder. May have data content and attributes, and can contain other files. -
IMAGINARY
A file that does not exist. May not have data content, attributes, or contain other files.
-
-
Method Details
-
toString
Returns the name of this type. -
getName
Returns the name of this type. -
hasChildren
public boolean hasChildren()Returns true if files of this type may contain other files. -
hasContent
public boolean hasContent()Returns true if files of this type may have data content. -
hasAttributes
public boolean hasAttributes()Returns true if files of this type may have attributes.
-