java.lang.Object
org.freedesktop.dbus.matchrules.DBusMatchRule
- Direct Known Subclasses:
DBusMatchRule
Represents a DBus matchrule.
Use
Use
DBusMatchRuleBuilder to create instances of this class.- Since:
- 5.2.0 - 2025-05-03
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<MatchRuleField, String> private final Map<MatchRuleField, Map<Integer, String>> private static final Map<String, Class<? extends DBusSignal>> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDBusMatchRule(Map<MatchRuleField, String> _values, Map<MatchRuleField, Map<Integer, String>> _multiValues) -
Method Summary
Modifier and TypeMethodDescription(package private) static voidaddToTypeMap(String _key, Class<? extends DBusSignal> _clz) boolean(package private) static StringformatValue(String _val) Ensures escaping of values in match rule.static Class<? extends DBusSignal> getCachedSignalType(String _type) getMultiValue(MatchRuleField _field) getPath()inthashCode()booleanChecks if the given rule matches with our rule.toString()Converts this DBusMatchRule to a match rule string as required to use forDBus.addMatch(String)method.
-
Field Details
-
SIGNALTYPEMAP
-
fields
-
multiValueFields
-
-
Constructor Details
-
DBusMatchRule
protected DBusMatchRule(Map<MatchRuleField, String> _values, Map<MatchRuleField, Map<Integer, String>> _multiValues)
-
-
Method Details
-
getMessageType
-
getInterface
-
getMember
-
getSender
-
getPath
-
getDestination
-
getArg0123
-
getArg0123Path
-
getMultiValue
-
matches
Checks if the given rule matches with our rule.- Parameters:
_msg- message to match against the configure rule- Returns:
- true if matching
-
hashCode
public int hashCode() -
equals
-
toString
Converts this DBusMatchRule to a match rule string as required to use forDBus.addMatch(String)method. -
formatValue
Ensures escaping of values in match rule.- Parameters:
_val- value to escape- Returns:
- escaped string or input if nothing to do
-
getCachedSignalType
-
addToTypeMap
-