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 TypeMethodDescriptionboolean
Returns the UID of the object, which is linked to the item.int
hashCode()
void
setTagsLinked
(boolean value) Set the flag that indicates if the item's current tags were applied from the linked channel's default tagsboolean
Check 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:AbstractLink
Returns the UID of the object, which is linked to the item.- Specified by:
getLinkedUID
in classAbstractLink
- Returns:
- UID (can not be null)
-
getConfiguration
-
equals
- Overrides:
equals
in classAbstractLink
-
hashCode
public int hashCode()- Overrides:
hashCode
in 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
-