Package org.openhab.core.thing.link
Class ItemChannelLink
java.lang.Object
org.openhab.core.thing.link.AbstractLink
org.openhab.core.thing.link.ItemChannelLink
- All Implemented Interfaces:
Identifiable<String>
- Author:
- Dennis Nobel - Initial contribution, Added getIDFor method, Jochen Hiller - Bugfix 455434: added default constructor, object is now mutable, Simon Kaufmann - added configuration
-
Constructor Summary
ConstructorsConstructorDescriptionItemChannelLink(String itemName, ChannelUID channelUID) ItemChannelLink(String itemName, ChannelUID channelUID, Configuration configuration) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the UID of the object, which is linked to the item.inthashCode()voidsetTagsLinked(boolean value) Set the flag that indicates if the item's current tags were applied from the linked channel's default tagsbooleanCheck if the item's current tags were applied from the linked channel's default tagsMethods inherited from class org.openhab.core.thing.link.AbstractLink
getIDFor, getItemName, getUID, toString
-
Constructor Details
-
ItemChannelLink
-
ItemChannelLink
-
-
Method Details
-
getLinkedUID
Description copied from class:AbstractLinkReturns the UID of the object, which is linked to the item.- Specified by:
getLinkedUIDin classAbstractLink- Returns:
- UID (can not be null)
-
getConfiguration
-
equals
- Overrides:
equalsin classAbstractLink
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractLink
-
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
-