Package joptsimple.util
Enum PathProperties
- java.lang.Object
-
- java.lang.Enum<PathProperties>
-
- joptsimple.util.PathProperties
-
- All Implemented Interfaces:
Serializable
,Comparable<PathProperties>
public enum PathProperties extends 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
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PathProperties
valueOf(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(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
-
-