Enum Class FileAttributeType

java.lang.Object
java.lang.Enum<FileAttributeType>
org.gnome.gio.FileAttributeType
All Implemented Interfaces:
Serializable, Comparable<FileAttributeType>, Constable, Enumeration

@Generated("org.javagi.JavaGI") public enum FileAttributeType extends Enum<FileAttributeType> implements Enumeration
The data types for file attributes.
  • Enum Constant Details

    • INVALID

      public static final FileAttributeType INVALID
      indicates an invalid or uninitialized type.
    • STRING

      public static final FileAttributeType STRING
      a null terminated UTF8 string.
    • BYTE_STRING

      public static final FileAttributeType BYTE_STRING
      a zero terminated string of non-zero bytes.
    • BOOLEAN

      public static final FileAttributeType BOOLEAN
      a boolean value.
    • UINT32

      public static final FileAttributeType UINT32
      an unsigned 4-byte/32-bit integer.
    • INT32

      public static final FileAttributeType INT32
      a signed 4-byte/32-bit integer.
    • UINT64

      public static final FileAttributeType UINT64
      an unsigned 8-byte/64-bit integer.
    • INT64

      public static final FileAttributeType INT64
      a signed 8-byte/64-bit integer.
    • OBJECT

      public static final FileAttributeType OBJECT
      a GObject.
    • STRINGV

      public static final FileAttributeType STRINGV
      a null terminated char **. Since 2.22
  • Method Details

    • values

      public static FileAttributeType[] 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 FileAttributeType 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
    • of

      public static FileAttributeType of(int value)
      Create a new FileAttributeType for the provided value
      Parameters:
      value - the enum value
      Returns:
      the enum for the provided value
    • getValue

      public int getValue()
      Get the numeric value of this enum
      Specified by:
      getValue in interface Enumeration
      Returns:
      the enum value
    • of

      public static FileAttributeType of(MemorySegment address)
      Create a new FileAttributeType for the value in the provided memory address.
      Parameters:
      address - the memory address holding a enum value
      Returns:
      the enum for the value in the provided memory address
    • getType

      public static @Nullable Type getType()
      Get the GType of the FileAttributeType class.
      Returns:
      the GType