Class DBusMatchRule
java.lang.Object
org.freedesktop.dbus.matchrules.DBusMatchRule
org.freedesktop.dbus.DBusMatchRule
@Deprecated(forRemoval=true,
since="5.2.0 - 2025-05-03")
public final class DBusMatchRule
extends DBusMatchRule
Deprecated, for removal: This API element is subject to removal in a future version.
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.
-
Constructor Summary
ConstructorsConstructorDescriptionDBusMatchRule(Class<?> _c) Deprecated, for removal: This API element is subject to removal in a future version.DBusMatchRule(Class<?> _c, String _source, String _object) Deprecated, for removal: This API element is subject to removal in a future version.DBusMatchRule(Class<? extends DBusInterface> _c, String _method) Deprecated, for removal: This API element is subject to removal in a future version.DBusMatchRule(String _type, String _iface, String _member) Deprecated, for removal: This API element is subject to removal in a future version.DBusMatchRule(String _type, String _iface, String _member, String _path) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.DBusMatchRule(Message _m) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionstatic Class<? extends DBusSignal> getCachedSignalType(String _type) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.booleanmatches(DBusMatchRule _rule, boolean _strict) Deprecated, for removal: This API element is subject to removal in a future version.using a MatchRule to match against a MatchRule makes no sense, therefore this method will be removed without any replacementbooleanmatches(DBusSignal _signal, boolean _strict) Deprecated, for removal: This API element is subject to removal in a future version.Checks if the given signal matches with our rule.Methods inherited from class DBusMatchRule
equals, getArg0123, getArg0123Path, getDestination, getInterface, getMember, getMessageType, getPath, getSender, hashCode, matches, toString
-
Constructor Details
-
DBusMatchRule
@Deprecated(forRemoval=true, since="5.2.0 - 2025-05-01") public DBusMatchRule(String _type, String _iface, String _member) Deprecated, for removal: This API element is subject to removal in a future version. -
DBusMatchRule
@Deprecated(forRemoval=true, since="5.2.0 - 2025-05-01") public DBusMatchRule(String _type, String _iface, String _member, String _path) Deprecated, for removal: This API element is subject to removal in a future version. -
DBusMatchRule
@Deprecated(forRemoval=true, since="5.2.0 - 2025-05-01") public DBusMatchRule(String _type, String _iface, String _member, String _path, String _destination) Deprecated, for removal: This API element is subject to removal in a future version. -
DBusMatchRule
@Deprecated(forRemoval=true, since="5.2.0 - 2025-05-01") public DBusMatchRule(DBusExecutionException _e) throws DBusException Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
DBusException
-
DBusMatchRule
Deprecated, for removal: This API element is subject to removal in a future version. -
DBusMatchRule
@Deprecated(forRemoval=true, since="5.2.0 - 2025-05-01") public DBusMatchRule(Class<? extends DBusInterface> _c, String _method) throws DBusException Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
DBusException
-
DBusMatchRule
@Deprecated(forRemoval=true, since="5.2.0 - 2025-05-01") public DBusMatchRule(Class<?> _c, String _source, String _object) throws DBusException Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
DBusException
-
DBusMatchRule
@Deprecated(forRemoval=true, since="5.2.0 - 2025-05-01") public DBusMatchRule(Class<?> _c) throws DBusException Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
DBusException
-
-
Method Details
-
getCachedSignalType
@Deprecated(forRemoval=true, since="5.2.0 - 2025-05-03") public static Class<? extends DBusSignal> getCachedSignalType(String _type) Deprecated, for removal: This API element is subject to removal in a future version. -
matches
@Deprecated(forRemoval=true, since="5.2.0 - 2025-05-01") public boolean matches(DBusMatchRule _rule, @Deprecated(forRemoval=true,since="5.2.0 - 2025-05-01") boolean _strict) Deprecated, for removal: This API element is subject to removal in a future version.using a MatchRule to match against a MatchRule makes no sense, therefore this method will be removed without any replacementChecks 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- deprecated, no longer used, will be removed in future- Returns:
- true if matching
-
matches
public boolean matches(DBusSignal _signal, @Deprecated(forRemoval=true,since="5.2.0 - 2025-05-01") boolean _strict) Deprecated, for removal: This API element is subject to removal in a future version.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- deprecated, no longer used, will be removed in future- Returns:
- true if matching
-
getSource
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- sender
-
getObject
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- path
-
DBusMatchRuleBuilder