Package org.apache.commons.vfs2
Enum FileType
- All Implemented Interfaces:
- Serializable,- Comparable<FileType>
An enumerated type that represents a file's type.
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionA regular file.A file or folder.A folder.A file that does not exist.
- 
Method SummaryModifier and TypeMethodDescriptiongetName()Returns the name of this type.booleanReturns true if files of this type may have attributes.booleanReturns true if files of this type may contain other files.booleanReturns true if files of this type may have data content.toString()Returns the name of this type.static FileTypeReturns the enum constant of this type with the specified name.static FileType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
- 
Enum Constant Details- 
FOLDERA folder. May contain other files, and have attributes, but does not have any data content.
- 
FILEA regular file. May have data content and attributes, but cannot contain other files.
- 
FILE_OR_FOLDERA file or folder. May have data content and attributes, and can contain other files.
- 
IMAGINARYA file that does not exist. May not have data content, attributes, or contain other files.
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
 
- 
valueOfReturns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum type has no constant with the specified name
- NullPointerException- if the argument is null
 
- 
getNameReturns the name of this type.- Returns:
- The name of the type.
 
- 
hasAttributesReturns true if files of this type may have attributes.- Returns:
- true if files can have attributes
 
- 
hasChildrenReturns true if files of this type may contain other files.- Returns:
- true if files can contain other files.
 
- 
hasContentReturns true if files of this type may have data content.- Returns:
- true if files can have content.
 
- 
toStringReturns the name of this type.
 
-