Class DBusNodeInfo

All Implemented Interfaces:
PointerInterface

public class DBusNodeInfo extends Record
Information about nodes in a remote object hierarchy.

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

  • Field Details

    • REF_COUNT

      public static final String REF_COUNT
      The reference count or -1 if statically allocated.
      See Also:
    • PATH

      public static final String PATH
      The path of the node or %NULL if omitted. Note that this may be a relative path. See the D-Bus specification for more details.
      See Also:
  • Constructor Details

  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • setFieldRefCount

      public void setFieldRefCount(int ref_count)
      The reference count or -1 if statically allocated.
    • getFieldRefCount

      public int getFieldRefCount()
      The reference count or -1 if statically allocated.
    • setFieldPath

      public void setFieldPath(Str path)
      The path of the node or %NULL if omitted. Note that this may be a relative path. See the D-Bus specification for more details.
    • getFieldPath

      public Str getFieldPath()
      The path of the node or %NULL if omitted. Note that this may be a relative path. See the D-Bus specification for more details.
    • newForXmlDBusNodeInfo

      public static DBusNodeInfo newForXmlDBusNodeInfo(@Nonnull Str xml_data) throws AllocationError
      Parses @xml_data and returns a #GDBusNodeInfo representing the data.

      The introspection XML must contain exactly one top-level
      <node> element.

      Note that this routine is using a
      [GMarkup][glib-Simple-XML-Subset-Parser.description]-based
      parser that only accepts a subset of valid XML documents.
      Parameters:
      xml_data - Valid D-Bus introspection XML.
      Returns:
      A #GDBusNodeInfo structure or %NULL if @error is set. Free with g_dbus_node_info_unref().
      Throws:
      AllocationError
    • newForXmlDBusNodeInfo

      public static DBusNodeInfo newForXmlDBusNodeInfo(String xml_data) throws AllocationError
      Parses @xml_data and returns a #GDBusNodeInfo representing the data.

      The introspection XML must contain exactly one top-level
      <node> element.

      Note that this routine is using a
      [GMarkup][glib-Simple-XML-Subset-Parser.description]-based
      parser that only accepts a subset of valid XML documents.
      Parameters:
      xml_data - Valid D-Bus introspection XML.
      Returns:
      A #GDBusNodeInfo structure or %NULL if @error is set. Free with g_dbus_node_info_unref().
      Throws:
      AllocationError
    • generateXml

      public void generateXml(int indent, @Nonnull GString string_builder)
      Appends an XML representation of @info (and its children) to @string_builder.

      This function is typically used for generating introspection XML documents at run-time for
      handling the `org.freedesktop.DBus.Introspectable.Introspect` method.
      Parameters:
      indent - Indentation level.
      string_builder - A #GString to to append XML data to.
    • lookupInterface

      public DBusInterfaceInfo lookupInterface(@Nonnull Str name)
      Looks up information about an interface.

      The cost of this function is O(n) in number of interfaces.
      Parameters:
      name - A D-Bus interface name.
      Returns:
      A #GDBusInterfaceInfo or %NULL if not found. Do not free, it is owned by @info.
    • lookupInterface

      public DBusInterfaceInfo lookupInterface(String name)
      Looks up information about an interface.

      The cost of this function is O(n) in number of interfaces.
      Parameters:
      name - A D-Bus interface name.
      Returns:
      A #GDBusInterfaceInfo or %NULL if not found. Do not free, it is owned by @info.
    • ref

      public DBusNodeInfo ref()
      If @info is statically allocated does nothing. Otherwise increases
      the reference count.
      Returns:
      The same @info.
    • unref

      public void unref()
      If @info is statically allocated, does nothing. Otherwise decreases
      the reference count of @info. When its reference count drops to 0,
      the memory used is freed.
    • 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()