Enum FileOption.Type
- java.lang.Object
-
- java.lang.Enum<FileOption.Type>
-
- org.sosy_lab.common.configuration.FileOption.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<FileOption.Type>
- Enclosing class:
- FileOption
public static enum FileOption.Type extends Enum<FileOption.Type>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description OPTIONAL_INPUT_FILE
The file specified with this option is a file (i.e., no directory), but it needs not exist.OUTPUT_DIRECTORY
The directory specified with this option will be created by the tool.OUTPUT_FILE
The file specified with this option will be created by the tool.REQUIRED_INPUT_FILE
The file specified with this option is a required input file (a non-existing file will be considered an invalid configuration).
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FileOption.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static FileOption.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REQUIRED_INPUT_FILE
public static final FileOption.Type REQUIRED_INPUT_FILE
The file specified with this option is a required input file (a non-existing file will be considered an invalid configuration).
-
OPTIONAL_INPUT_FILE
public static final FileOption.Type OPTIONAL_INPUT_FILE
The file specified with this option is a file (i.e., no directory), but it needs not exist.
-
OUTPUT_FILE
public static final FileOption.Type OUTPUT_FILE
The file specified with this option will be created by the tool. I doesn't matter whether this file already exists, but it may not be a directory.
-
OUTPUT_DIRECTORY
public static final FileOption.Type OUTPUT_DIRECTORY
The directory specified with this option will be created by the tool. I doesn't matter whether this directory already exists, but it may not be a file.
-
-
Method Detail
-
values
public static FileOption.Type[] 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 (FileOption.Type c : FileOption.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FileOption.Type 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
-
-