Package org.esa.snap.core.util.io
Enum SnapFileFilter.FileSelectionMode
- java.lang.Object
-
- java.lang.Enum<SnapFileFilter.FileSelectionMode>
-
- org.esa.snap.core.util.io.SnapFileFilter.FileSelectionMode
-
- All Implemented Interfaces:
Serializable
,Comparable<SnapFileFilter.FileSelectionMode>
- Enclosing class:
- SnapFileFilter
public static enum SnapFileFilter.FileSelectionMode extends Enum<SnapFileFilter.FileSelectionMode>
File selection modes.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DIRECTORIES_ONLY
Instruction to display only directories.FILES_AND_DIRECTORIES
Instruction to display both files and directories.FILES_ONLY
Instruction to display only files.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getValue()
static SnapFileFilter.FileSelectionMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static SnapFileFilter.FileSelectionMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FILES_ONLY
public static final SnapFileFilter.FileSelectionMode FILES_ONLY
Instruction to display only files.
-
DIRECTORIES_ONLY
public static final SnapFileFilter.FileSelectionMode DIRECTORIES_ONLY
Instruction to display only directories.
-
FILES_AND_DIRECTORIES
public static final SnapFileFilter.FileSelectionMode FILES_AND_DIRECTORIES
Instruction to display both files and directories.
-
-
Method Detail
-
values
public static SnapFileFilter.FileSelectionMode[] 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 (SnapFileFilter.FileSelectionMode c : SnapFileFilter.FileSelectionMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SnapFileFilter.FileSelectionMode 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
-
getValue
public int getValue()
-
-