Package com.deltawalker.script
Enum Class Resource.Attribute
- All Implemented Interfaces:
Serializable,Comparable<Resource.Attribute>,Constable
- Enclosing interface:
Resource
File and folder attributes. Which attributes are supported depends on
the operating system.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe resource is marked for archiving.The resource is an executable file.The resource is a folder.The resource is hidden.The resource content can be read.The resource is a symbolic link.The resource is a system file.The resource content can be modified. -
Method Summary
Modifier and TypeMethodDescriptionstatic Resource.AttributeReturns the enum constant of this class with the specified name.static Resource.Attribute[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
ARCHIVE
The resource is marked for archiving. Windows only. -
EXECUTABLE
The resource is an executable file. -
FOLDER
The resource is a folder. -
HIDDEN
The resource is hidden. On macOS and Linux the names of hidden resources begin with '.'; on Windows this is an attribute maintained by the file system. -
READABLE
The resource content can be read.This is different from being able to read the attributes of a resource. On macOS and Linux, reading the content of a resource requires at least the user read permission.
-
SYMBOLIC_LINK
The resource is a symbolic link. -
SYSTEM
The resource is a system file. Windows only. -
WRITABLE
The resource content can be modified. Corresponds to the user write permission on macOS and Linux, and to the absence of the Read-only attribute on Windows.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-