java.lang.Object
org.freedesktop.dbus.DBusMatchRule
Defined a rule to match a message.
This is mainly used to handle / take actions when signals arrive.
This is mainly used to handle / take actions when signals arrive.
-
Konstruktorübersicht
KonstruktorBeschreibungDBusMatchRule
(Class<? extends Object> _c) DBusMatchRule
(Class<? extends Object> _c, String _source, String _object) DBusMatchRule
(Class<? extends DBusInterface> _c, String _method) DBusMatchRule
(String _type, String _iface, String _member) DBusMatchRule
(String _type, String _iface, String _member, String _object) DBusMatchRule
(Message _m) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungboolean
static Class
<? extends DBusSignal> getCachedSignalType
(String _type) getType()
int
hashCode()
boolean
matches
(DBusMatchRule _rule, boolean _strict) Checks if the given rule matches with our rule.boolean
matches
(DBusSignal _signal, boolean _strict) Checks if the given signal matches with our rule.toString()
-
Konstruktordetails
-
DBusMatchRule
-
DBusMatchRule
-
DBusMatchRule
- Löst aus:
DBusException
-
DBusMatchRule
-
DBusMatchRule
- Löst aus:
DBusException
-
DBusMatchRule
public DBusMatchRule(Class<? extends Object> _c, String _source, String _object) throws DBusException - Löst aus:
DBusException
-
DBusMatchRule
- Löst aus:
DBusException
-
-
Methodendetails
-
getCachedSignalType
-
matches
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
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
-
hashCode
public int hashCode() -
equals
-
getType
-
getInterface
-
getMember
-
getSource
-
getObject
-