Class ChannelDescriptionChangedEvent

java.lang.Object
org.openhab.core.events.AbstractEvent
org.openhab.core.thing.events.ChannelDescriptionChangedEvent
All Implemented Interfaces:
Event

@NonNullByDefault public class ChannelDescriptionChangedEvent extends AbstractEvent
ChannelDescriptionChangedEvents will be delivered through the openHAB event bus if the CommandDescription or StateDescription of a channel has changed. Instances must be created with the ThingEventFactory.
Author:
Christoph Weitkamp - Initial contribution
  • Field Details

    • TYPE

      public static final String TYPE
      The channel description changed event type.
  • Constructor Details

  • Method Details

    • getType

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

      Gets the changed field.
      Returns:
      the changed field
    • getChannelUID

      public ChannelUID getChannelUID()
      Gets the ChannelUID.
      Returns:
      the ChannelUID
    • getLinkedItemNames

      public Set<String> getLinkedItemNames()
      Gets the linked item names.
      Returns:
      a Set of linked item names
    • getValue

      public String getValue()
      Gets the new value (represented as JSON string).
      Returns:
      the new value.
    • getOldValue

      public @Nullable String getOldValue()
      Gets the old value (represented as JSON string).
      Returns:
      the old value.
    • toString

      public String toString()
      Overrides:
      toString in class Object