Class ItemEvent

java.lang.Object
org.openhab.core.events.AbstractEvent
org.openhab.core.items.events.ItemEvent
All Implemented Interfaces:
Event
Direct Known Subclasses:
ItemCommandEvent, ItemStateChangedEvent, ItemStateEvent, ItemStatePredictedEvent, ItemStateUpdatedEvent, ItemTimeSeriesEvent, ItemTimeSeriesUpdatedEvent

@NonNullByDefault public abstract class ItemEvent extends AbstractEvent
ItemEvent is an abstract super class for all command and state item events.
Author:
Kai Kreuzer - Initial contribution
  • Field Details

    • itemName

      protected final String itemName
  • Constructor Details

    • ItemEvent

      public ItemEvent(String topic, String payload, String itemName, @Nullable String source)
      Constructs a new item state event.
      Parameters:
      topic - the topic
      payload - the payload
      itemName - the item name
      source - the source, can be null
  • Method Details

    • getItemName

      public String getItemName()
      Gets the item name.
      Returns:
      the item name