Class FileAttributeInfoList

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

@Generated("org.javagi.JavaGI") public class FileAttributeInfoList extends ProxyInstance
Acts as a lightweight registry for possible valid file attributes. The registry stores Key-Value pair formats as GFileAttributeInfos.
  • Constructor Details

    • FileAttributeInfoList

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

      public FileAttributeInfoList()
      Creates a new file attribute info list.
  • Method Details

    • getType

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

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

      public FileAttributeInfo readInfos()
      Read the value of the field infos.
      Returns:
      The value of the field infos
    • writeInfos

      public void writeInfos(FileAttributeInfo infos)
      Write a value in the field infos.
      Parameters:
      infos - The new value for the field infos
    • readNInfos

      public int readNInfos()
      Read the value of the field n_infos.
      Returns:
      The value of the field n_infos
    • writeNInfos

      public void writeNInfos(int nInfos)
      Write a value in the field n_infos.
      Parameters:
      nInfos - The new value for the field n_infos
    • add

      public void add(String name, FileAttributeType type, Set<FileAttributeInfoFlags> flags)
      Adds a new attribute with name to the list, setting its type and flags.
      Parameters:
      name - the name of the attribute to add.
      type - the GFileAttributeType for the attribute.
      flags - GFileAttributeInfoFlags for the attribute.
    • add

      public void add(String name, FileAttributeType type, FileAttributeInfoFlags... flags)
      Adds a new attribute with name to the list, setting its type and flags.
      Parameters:
      name - the name of the attribute to add.
      type - the GFileAttributeType for the attribute.
      flags - GFileAttributeInfoFlags for the attribute.
    • dup

      public FileAttributeInfoList dup()
      Makes a duplicate of a file attribute info list.
      Returns:
      a copy of the given list.
    • lookup

      public FileAttributeInfo lookup(String name)
      Gets the file attribute with the name name from list.
      Parameters:
      name - the name of the attribute to look up.
      Returns:
      a GFileAttributeInfo for the name, or null if an attribute isn't found.
    • ref

      public FileAttributeInfoList ref()
      References a file attribute info list.
      Returns:
      GFileAttributeInfoList or null on error.
    • unref

      public void unref()
      Removes a reference from the given list. If the reference count falls to zero, the this FileAttributeInfoList is deleted.