Package org.pentaho.di.core.fileinput
Enum FileInputList.FileTypeFilter
- java.lang.Object
-
- java.lang.Enum<FileInputList.FileTypeFilter>
-
- org.pentaho.di.core.fileinput.FileInputList.FileTypeFilter
-
- All Implemented Interfaces:
Serializable
,Comparable<FileInputList.FileTypeFilter>
- Enclosing class:
- FileInputList
public static enum FileInputList.FileTypeFilter extends Enum<FileInputList.FileTypeFilter>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FILES_AND_FOLDERS
ONLY_FILES
ONLY_FOLDERS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FileInputList.FileTypeFilter
getByName(String name)
static FileInputList.FileTypeFilter
getByOrdinal(int ordinal)
boolean
isFileTypeAllowed(org.apache.commons.vfs2.FileType fileType)
String
toString()
static FileInputList.FileTypeFilter
valueOf(String name)
Returns the enum constant of this type with the specified name.static FileInputList.FileTypeFilter[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FILES_AND_FOLDERS
public static final FileInputList.FileTypeFilter FILES_AND_FOLDERS
-
ONLY_FILES
public static final FileInputList.FileTypeFilter ONLY_FILES
-
ONLY_FOLDERS
public static final FileInputList.FileTypeFilter ONLY_FOLDERS
-
-
Method Detail
-
values
public static FileInputList.FileTypeFilter[] 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 (FileInputList.FileTypeFilter c : FileInputList.FileTypeFilter.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FileInputList.FileTypeFilter 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
-
isFileTypeAllowed
public boolean isFileTypeAllowed(org.apache.commons.vfs2.FileType fileType)
-
toString
public String toString()
- Overrides:
toString
in classEnum<FileInputList.FileTypeFilter>
-
getByOrdinal
public static FileInputList.FileTypeFilter getByOrdinal(int ordinal)
-
getByName
public static FileInputList.FileTypeFilter getByName(String name)
-
-