Class FileAttributeInfo

java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gio.FileAttributeInfo
All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class FileAttributeInfo extends ProxyInstance
Information about a specific attribute.
  • Constructor Details

    • FileAttributeInfo

      public FileAttributeInfo(MemorySegment address)
      Create a FileAttributeInfo proxy instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • FileAttributeInfo

      public FileAttributeInfo(Arena arena)
      Allocate a new FileAttributeInfo.
      Parameters:
      arena - to control the memory allocation scope
    • FileAttributeInfo

      public FileAttributeInfo()
      Allocate a new FileAttributeInfo. The memory is allocated with Arena.ofAuto().
    • FileAttributeInfo

      public FileAttributeInfo(String name, FileAttributeType type, Set<FileAttributeInfoFlags> flags, Arena arena)
      Allocate a new FileAttributeInfo with the fields set to the provided values.
      Parameters:
      name - value for the field name
      type - value for the field type
      flags - value for the field flags
      arena - to control the memory allocation scope
    • FileAttributeInfo

      public FileAttributeInfo(String name, FileAttributeType type, Set<FileAttributeInfoFlags> flags)
      Allocate a new FileAttributeInfo with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      name - value for the field name
      type - value for the field type
      flags - value for the field flags
  • Method Details

    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • readName

      public String readName()
      Read the value of the field name.
      Returns:
      The value of the field name
    • writeName

      public void writeName(String name, Arena _arena)
      Write a value in the field name.
      Parameters:
      name - The new value for the field name
      _arena - to control the memory allocation scope
    • readType

      public FileAttributeType readType()
      Read the value of the field type.
      Returns:
      The value of the field type
    • writeType

      public void writeType(FileAttributeType type)
      Write a value in the field type.
      Parameters:
      type - The new value for the field type
    • readFlags

      public Set<FileAttributeInfoFlags> readFlags()
      Read the value of the field flags.
      Returns:
      The value of the field flags
    • writeFlags

      public void writeFlags(Set<FileAttributeInfoFlags> flags)
      Write a value in the field flags.
      Parameters:
      flags - The new value for the field flags