Package org.gnome.gio
Class FileAttributeInfoList
java.lang.Object
io.github.jwharm.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
ConstructorDescriptionCreates a new file attribute info list.FileAttributeInfoList
(MemorySegment address) Create a FileAttributeInfoList proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(String name, FileAttributeType type, Set<FileAttributeInfoFlags> flags) Adds a new attribute withname
to the this FileAttributeInfoList, setting itstype
andflags
.void
add
(String name, FileAttributeType type, FileAttributeInfoFlags... flags) Adds a new attribute withname
to the this FileAttributeInfoList, setting itstype
andflags
.dup()
Makes a duplicate of a file attribute info list.static MemoryLayout
The memory layout of the native struct.static Type
getType()
Get the GType of the FileAttributeInfoList classGets the file attribute with the namename
from this FileAttributeInfoList.Read the value of the fieldinfos
.int
Read the value of the fieldn_infos
.ref()
References a file attribute info list.void
unref()
Removes a reference from the given this FileAttributeInfoList.void
writeInfos
(FileAttributeInfo infos) Write a value in the fieldinfos
.void
writeNInfos
(int nInfos) Write a value in the fieldn_infos
.Methods inherited from class io.github.jwharm.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
-
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 withname
to the this FileAttributeInfoList, setting itstype
andflags
.- Parameters:
name
- the name of the attribute to add.type
- theGFileAttributeType
for the attribute.flags
-GFileAttributeInfoFlags
for the attribute.
-
add
Adds a new attribute withname
to the this FileAttributeInfoList, setting itstype
andflags
.- Parameters:
name
- the name of the attribute to add.type
- theGFileAttributeType
for the attribute.flags
-GFileAttributeInfoFlags
for the attribute.
-
dup
Makes a duplicate of a file attribute info list.- Returns:
- a copy of the given this FileAttributeInfoList.
-
lookup
Gets the file attribute with the namename
from this FileAttributeInfoList.- Parameters:
name
- the name of the attribute to look up.- Returns:
- a
GFileAttributeInfo
for thename
, ornull
if an attribute isn't found.
-
ref
References a file attribute info list.- Returns:
GFileAttributeInfoList
ornull
on error.
-
unref
public void unref()Removes a reference from the given this FileAttributeInfoList. If the reference count falls to zero, the this FileAttributeInfoList is deleted.
-