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
-
Field Summary
Fields inherited from class org.openhab.core.events.AbstractEvent
ACTOR_SEPARATOR, DELEGATION_SEPARATOR -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractRuleRegistryEvent(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
buildDelegatedSource, buildDelegatedSource, buildSource, equals, getPayload, getSource, getTopic, hashCode
-
Constructor Details
-
AbstractRuleRegistryEvent
protected 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
-