Class SchemaAttribute

java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.secret.SchemaAttribute
All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class SchemaAttribute extends ProxyInstance
An attribute in a SecretSchema.
  • Constructor Details

    • SchemaAttribute

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

      public SchemaAttribute(Arena arena)
      Allocate a new SchemaAttribute.
      Parameters:
      arena - to control the memory allocation scope
    • SchemaAttribute

      public SchemaAttribute()
      Allocate a new SchemaAttribute. The memory is allocated with Arena.ofAuto().
    • SchemaAttribute

      public SchemaAttribute(String name, SchemaAttributeType type, Arena arena)
      Allocate a new SchemaAttribute with the fields set to the provided values.
      Parameters:
      name - value for the field name
      type - value for the field type
      arena - to control the memory allocation scope
    • SchemaAttribute

      public SchemaAttribute(String name, SchemaAttributeType type)
      Allocate a new SchemaAttribute with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      name - value for the field name
      type - value for the field type
  • Method Details

    • getType

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

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

      public String readName()
      Read the value of the field name.
      Returns:
      The value of the field name
    • writeName

      public void writeName(String name, Arena _arena)
      Write a value in the field name.
      Parameters:
      name - The new value for the field name
      _arena - to control the memory allocation scope
    • readType

      public SchemaAttributeType readType()
      Read the value of the field type.
      Returns:
      The value of the field type
    • writeType

      public void writeType(SchemaAttributeType type)
      Write a value in the field type.
      Parameters:
      type - The new value for the field type