Class ItemChannelLink

java.lang.Object
org.openhab.core.thing.link.AbstractLink
org.openhab.core.thing.link.ItemChannelLink
All Implemented Interfaces:
Identifiable<String>

@NonNullByDefault public class ItemChannelLink extends AbstractLink
ItemChannelLink defines a link between an Item and a Channel.
Author:
Dennis Nobel - Initial contribution, Added getIDFor method, Jochen Hiller - Bugfix 455434: added default constructor, object is now mutable, Simon Kaufmann - added configuration
  • Constructor Details

  • Method Details

    • getLinkedUID

      public ChannelUID getLinkedUID()
      Description copied from class: AbstractLink
      Returns the UID of the object, which is linked to the item.
      Specified by:
      getLinkedUID in class AbstractLink
      Returns:
      UID (can not be null)
    • getConfiguration

      public Configuration getConfiguration()
    • equals

      public boolean equals(@Nullable Object obj)
      Overrides:
      equals in class AbstractLink
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class AbstractLink
    • tagsLinked

      public boolean tagsLinked()
      Check if the item's current tags were applied from the linked channel's default tags
    • setTagsLinked

      public void setTagsLinked(boolean value)
      Set the flag that indicates if the item's current tags were applied from the linked channel's default tags