Package adams.flow.transformer
Enum FileInfo.InfoType
- java.lang.Object
-
- java.lang.Enum<FileInfo.InfoType>
-
- adams.flow.transformer.FileInfo.InfoType
-
- All Implemented Interfaces:
Serializable
,Comparable<FileInfo.InfoType>
- Enclosing class:
- FileInfo
public static enum FileInfo.InfoType extends Enum<FileInfo.InfoType>
The type of information to generate.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description IS_DIRECTORY
whether the path represents a directory.IS_EXECUTABLE
whether executable.IS_FILE
whether the path representts a file.IS_HIDDEN
whether the file is hidden.IS_READABLE
whether file is readable.IS_WRITEABLE
whether file is writeable.LAST_MODIFIED
modified timestamp.SIZE
the size.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FileInfo.InfoType
valueOf(String name)
Returns the enum constant of this type with the specified name.static FileInfo.InfoType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SIZE
public static final FileInfo.InfoType SIZE
the size.
-
LAST_MODIFIED
public static final FileInfo.InfoType LAST_MODIFIED
modified timestamp.
-
IS_READABLE
public static final FileInfo.InfoType IS_READABLE
whether file is readable.
-
IS_WRITEABLE
public static final FileInfo.InfoType IS_WRITEABLE
whether file is writeable.
-
IS_EXECUTABLE
public static final FileInfo.InfoType IS_EXECUTABLE
whether executable.
-
IS_HIDDEN
public static final FileInfo.InfoType IS_HIDDEN
whether the file is hidden.
-
IS_DIRECTORY
public static final FileInfo.InfoType IS_DIRECTORY
whether the path represents a directory.
-
IS_FILE
public static final FileInfo.InfoType IS_FILE
whether the path representts a file.
-
-
Method Detail
-
values
public static FileInfo.InfoType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FileInfo.InfoType c : FileInfo.InfoType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FileInfo.InfoType valueOf(String name)
Returns 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 nameNullPointerException
- if the argument is null
-
-