Package joptsimple.util
Enum PathProperties
- java.lang.Object
-
- java.lang.Enum<PathProperties>
-
- joptsimple.util.PathProperties
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PathProperties>
public enum PathProperties extends java.lang.Enum<PathProperties>
Enum for checking common conditions of files and directories.- See Also:
PathConverter
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DIRECTORY_EXISTING
FILE_EXISTING
FILE_OVERWRITABLE
NOT_EXISTING
READABLE
WRITABLE
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
messageKey
-
Constructor Summary
Constructors Modifier Constructor Description private
PathProperties(java.lang.String messageKey)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) abstract boolean
accept(java.nio.file.Path path)
(package private) java.lang.String
getMessageKey()
static PathProperties
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PathProperties[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FILE_EXISTING
public static final PathProperties FILE_EXISTING
-
DIRECTORY_EXISTING
public static final PathProperties DIRECTORY_EXISTING
-
NOT_EXISTING
public static final PathProperties NOT_EXISTING
-
FILE_OVERWRITABLE
public static final PathProperties FILE_OVERWRITABLE
-
READABLE
public static final PathProperties READABLE
-
WRITABLE
public static final PathProperties WRITABLE
-
-
Method Detail
-
values
public static PathProperties[] 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 (PathProperties c : PathProperties.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PathProperties valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
accept
abstract boolean accept(java.nio.file.Path path)
-
getMessageKey
java.lang.String getMessageKey()
-
-