com.faunos.util.boot
Enum FileResolver.Constraints
java.lang.Object
java.lang.Enum<FileResolver.Constraints>
com.faunos.util.boot.FileResolver.Constraints
- All Implemented Interfaces:
- Serializable, Comparable<FileResolver.Constraints>
- Enclosing class:
- FileResolver
public static enum FileResolver.Constraints
- extends Enum<FileResolver.Constraints>
EXISTING_DIRECTORY
public static final FileResolver.Constraints EXISTING_DIRECTORY
EXISTING_FILE
public static final FileResolver.Constraints EXISTING_FILE
POTENTIAL_DIRECTORY
public static final FileResolver.Constraints POTENTIAL_DIRECTORY
POTENTIAL_FILE
public static final FileResolver.Constraints POTENTIAL_FILE
values
public static final FileResolver.Constraints[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(FileResolver.Constraints c : FileResolver.Constraints.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static FileResolver.Constraints 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 name
isDirectory
public boolean isDirectory()
mustExist
public boolean mustExist()
forProperties
public static FileResolver.Constraints forProperties(boolean directory,
boolean mustExist)