Class ItemStateUpdatedEvent

All Implemented Interfaces:
Event
Direct Known Subclasses:
GroupStateUpdatedEvent

@NonNullByDefault public class ItemStateUpdatedEvent extends ItemEvent
ItemStateUpdatedEvents can be used to report item status updates through the openHAB event bus. State update events must be created with the ItemEventFactory.
Author:
Jan N. Klug - Initial contribution
  • Field Details

    • TYPE

      public static final String TYPE
      The item state event type.
    • itemState

      protected final State itemState
  • Constructor Details

    • ItemStateUpdatedEvent

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

    • getType

      public String getType()
      Description copied from interface: Event
      Gets the event type.
      Returns:
      the event type
    • getItemState

      public State getItemState()
      Gets the item state.
      Returns:
      the item state
    • toString

      public String toString()
      Overrides:
      toString in class Object