Class AbstractRuleRegistryEvent
java.lang.Object
org.openhab.core.events.AbstractEvent
org.openhab.core.automation.events.AbstractRuleRegistryEvent
- All Implemented Interfaces:
Event
- Direct Known Subclasses:
RuleAddedEvent
,RuleRemovedEvent
,RuleUpdatedEvent
abstract class for rule events
- Author:
- Benedikt Niehues - Initial contribution, Markus Rathgeb - Use the DTO for the Rule representation
-
Constructor Summary
ConstructorDescriptionAbstractRuleRegistryEvent
(String topic, String payload, @Nullable String source, RuleDTO rule) Must be called in subclass constructor to create a new rule registry event. -
Method Summary
Methods inherited from class org.openhab.core.events.AbstractEvent
equals, getPayload, getSource, getTopic, hashCode
-
Constructor Details
-
AbstractRuleRegistryEvent
public AbstractRuleRegistryEvent(String topic, String payload, @Nullable String source, RuleDTO rule) Must be called in subclass constructor to create a new rule registry event.- Parameters:
topic
- the topic of the eventpayload
- the payload of the eventsource
- the source of the eventrule
- the rule for which this event is created
-
-
Method Details
-
getRule
- Returns:
- the RuleDTO which caused the Event
-