Class FileAttributeInfoList

All Implemented Interfaces:
PointerInterface

public class FileAttributeInfoList extends Record
Acts as a lightweight registry for possible valid file attributes.
The registry stores Key-Value pair formats as #GFileAttributeInfos.

https://docs.gtk.org/gio/struct.FileAttributeInfoList.html

  • Field Details

  • Constructor Details

    • FileAttributeInfoList

      public FileAttributeInfoList(PointerContainer pointer)
    • FileAttributeInfoList

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

    • getClassHandler

      public static ClassHandler getClassHandler()
    • setFieldInfos

      public void setFieldInfos(FileAttributeInfo infos)
      an array of #GFileAttributeInfos.
    • getFieldInfos

      public FileAttributeInfo getFieldInfos()
      an array of #GFileAttributeInfos.
    • setFieldNInfos

      public void setFieldNInfos(int n_infos)
      the number of values in the array.
    • getFieldNInfos

      public int getFieldNInfos()
      the number of values in the array.
    • add

      public void add(@Nonnull Str name, int type, int 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, int type, int 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(@Nonnull Str 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.
    • 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 @list is deleted.
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()