Enum SingularFileMode
- All Implemented Interfaces:
Serializable, Comparable<SingularFileMode>
Enumeration for a single input or output file that describes whether the file is required, optional, or never
allowed.
- Since:
- 8.5.0
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanabstract intReturns the maximum number of files allowed by this mode.abstract intReturns the minimum number of files required by this mode.static SingularFileModeReturns the enum constant of this type with the specified name.static SingularFileMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
FORBIDDEN
A file is never allowed to be present. -
OPTIONAL
A file may or may not be present. -
REQUIRED
A file is always required to be present.
-
-
Method Details
-
values
Returns 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
-
valueOf
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
-
allowsFile
-
maxFileCount
public abstract int maxFileCount()Returns the maximum number of files allowed by this mode.- Returns:
- The maximum file count.
-
minFileCount
public abstract int minFileCount()Returns the minimum number of files required by this mode.- Returns:
- The minimum file count.
-