Package org.gnome.secret
Class SchemaAttribute
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.secret.SchemaAttribute
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate a new SchemaAttribute.SchemaAttribute(Arena arena) Allocate a new SchemaAttribute.SchemaAttribute(MemorySegment address) Create a SchemaAttribute proxy instance for the provided memory address.SchemaAttribute(String name, SchemaAttributeType type) Allocate a new SchemaAttribute with the fields set to the provided values.SchemaAttribute(String name, SchemaAttributeType type, Arena arena) Allocate a new SchemaAttribute with the fields set to the provided values. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayoutThe memory layout of the native struct.static @Nullable TypegetType()Get the GType of the SchemaAttribute classreadName()Read the value of the fieldname.readType()Read the value of the fieldtype.voidWrite a value in the fieldname.voidwriteType(SchemaAttributeType type) Write a value in the fieldtype.Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
SchemaAttribute
Create a SchemaAttribute proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
SchemaAttribute
Allocate a new SchemaAttribute.- Parameters:
arena- to control the memory allocation scope
-
SchemaAttribute
public SchemaAttribute()Allocate a new SchemaAttribute. The memory is allocated withArena.ofAuto(). -
SchemaAttribute
Allocate a new SchemaAttribute with the fields set to the provided values.- Parameters:
name- value for the fieldnametype- value for the fieldtypearena- to control the memory allocation scope
-
SchemaAttribute
Allocate a new SchemaAttribute with the fields set to the provided values. The memory is allocated withArena.ofAuto().- Parameters:
name- value for the fieldnametype- value for the fieldtype
-
-
Method Details
-
getType
Get the GType of the SchemaAttribute class- Returns:
- the GType
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readName
-
writeName
-
readType
Read the value of the fieldtype.- Returns:
- The value of the field
type
-
writeType
Write a value in the fieldtype.- Parameters:
type- The new value for the fieldtype
-