Package org.gnome.gio
Class FileAttributeInfoList
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gio.FileAttributeInfoList
- All Implemented Interfaces:
Proxy
Acts as a lightweight registry for possible valid file attributes.
The registry stores Key-Value pair formats as
GFileAttributeInfos.-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new file attribute info list.FileAttributeInfoList(MemorySegment address) Create a FileAttributeInfoList proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(String name, FileAttributeType type, Set<FileAttributeInfoFlags> flags) Adds a new attribute withnameto thelist,setting itstypeandflags.voidadd(String name, FileAttributeType type, FileAttributeInfoFlags... flags) Adds a new attribute withnameto thelist,setting itstypeandflags.dup()Makes a duplicate of a file attribute info list.static MemoryLayoutThe memory layout of the native struct.static @Nullable TypegetType()Get the GType of the FileAttributeInfoList classGets the file attribute with the namenamefromlist.Read the value of the fieldinfos.intRead the value of the fieldn_infos.ref()References a file attribute info list.voidunref()Removes a reference from the givenlist.If the reference count falls to zero, the this FileAttributeInfoList is deleted.voidwriteInfos(FileAttributeInfo infos) Write a value in the fieldinfos.voidwriteNInfos(int nInfos) Write a value in the fieldn_infos.Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
FileAttributeInfoList
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
Get the GType of the FileAttributeInfoList class- Returns:
- the GType
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readInfos
Read the value of the fieldinfos.- Returns:
- The value of the field
infos
-
writeInfos
Write a value in the fieldinfos.- Parameters:
infos- The new value for the fieldinfos
-
readNInfos
public int readNInfos()Read the value of the fieldn_infos.- Returns:
- The value of the field
n_infos
-
writeNInfos
public void writeNInfos(int nInfos) Write a value in the fieldn_infos.- Parameters:
nInfos- The new value for the fieldn_infos
-
add
Adds a new attribute withnameto thelist,setting itstypeandflags.- Parameters:
name- the name of the attribute to add.type- theGFileAttributeTypefor the attribute.flags-GFileAttributeInfoFlagsfor the attribute.
-
add
Adds a new attribute withnameto thelist,setting itstypeandflags.- Parameters:
name- the name of the attribute to add.type- theGFileAttributeTypefor the attribute.flags-GFileAttributeInfoFlagsfor the attribute.
-
dup
Makes a duplicate of a file attribute info list.- Returns:
- a copy of the given
list.
-
lookup
Gets the file attribute with the namenamefromlist.- Parameters:
name- the name of the attribute to look up.- Returns:
- a
GFileAttributeInfofor thename,ornullif an attribute isn't found.
-
ref
References a file attribute info list.- Returns:
GFileAttributeInfoListornullon error.
-
unref
public void unref()Removes a reference from the givenlist.If the reference count falls to zero, the this FileAttributeInfoList is deleted.
-