Enum Class Resource.Attribute

java.lang.Object
java.lang.Enum<Resource.Attribute>
com.deltawalker.script.Resource.Attribute
All Implemented Interfaces:
Serializable, Comparable<Resource.Attribute>, Constable
Enclosing interface:
Resource

public static enum Resource.Attribute extends Enum<Resource.Attribute>
File and folder attributes. Which attributes are supported depends on the operating system.
  • Enum Constant Details

    • ARCHIVE

      public static final Resource.Attribute ARCHIVE
      The resource is marked for archiving. Windows only.
    • EXECUTABLE

      public static final Resource.Attribute EXECUTABLE
      The resource is an executable file.
    • FOLDER

      public static final Resource.Attribute FOLDER
      The resource is a folder.
    • HIDDEN

      public static final Resource.Attribute 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

      public static final Resource.Attribute 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.

    • SYSTEM

      public static final Resource.Attribute SYSTEM
      The resource is a system file. Windows only.
    • WRITABLE

      public static final Resource.Attribute 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

      public static Resource.Attribute[] 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

      public static Resource.Attribute valueOf(String name)
      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 name
      NullPointerException - if the argument is null