Klasse DBusMatchRule

java.lang.Object
org.freedesktop.dbus.DBusMatchRule

public class DBusMatchRule extends Object
Defined a rule to match a message.
This is mainly used to handle / take actions when signals arrive.
  • Konstruktordetails

  • Methodendetails

    • getCachedSignalType

      public static Class<? extends DBusSignal> getCachedSignalType(String _type)
    • matches

      public boolean matches(DBusMatchRule _rule, boolean _strict)
      Checks if the given rule matches with our rule.

      Method supports partial matching by setting strict to false. Partial means that only the parts of this object are compared to the given object which were set (non-null) on ourselves. Fields set on the given object but not on ourselves will be ignored.

      Parameter:
      _rule - rule to compare
      _strict - true to get an exact match, false to allow partial matches
      Gibt zurück:
      true if matching
    • matches

      public boolean matches(DBusSignal _signal, boolean _strict)
      Checks if the given signal matches with our rule.

      Method supports partial matching by setting strict to false. Partial means that only the parts of this rule are compared to the given signal which were set (non-null) on ourselves. Fields set on the given signal but not on ourselves will be ignored.

      Parameter:
      _signal - signal to compare
      _strict - true to get an exact match, false to allow partial matches
      Gibt zurück:
      true if matching
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse Object
    • equals

      public boolean equals(Object _obj)
      Setzt außer Kraft:
      equals in Klasse Object
    • getType

      public String getType()
    • getInterface

      public String getInterface()
    • getMember

      public String getMember()
    • getSource

      public String getSource()
    • getObject

      public String getObject()