Class 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.
  • Constructor Details

  • Method Details

    • 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.

      Parameters:
      _rule - rule to compare
      _strict - true to get an exact match, false to allow partial matches
      Returns:
      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.

      Parameters:
      _signal - signal to compare
      _strict - true to get an exact match, false to allow partial matches
      Returns:
      true if matching
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object _obj)
      Overrides:
      equals in class Object
    • getType

      public String getType()
    • getInterface

      public String getInterface()
    • getMember

      public String getMember()
    • getSource

      public String getSource()
    • getObject

      public String getObject()