Package org.openhab.core.thing.type
Class ChannelDefinition
java.lang.Object
org.openhab.core.thing.type.ChannelDefinition
The
ChannelDefinition class defines a Channel of a ThingType.
A Channel is part of a Thing that represents a functionality of it.
Hint: This class is immutable.
- Author:
- Michael Grammling - Initial contribution, Chris Jackson - Added properties and label/description, Dennis Nobel - Introduced ChannelTypeRegistry and channel type references
-
Method Summary
Modifier and TypeMethodDescription@Nullable AutoUpdatePolicyReturns theAutoUpdatePolicyto use for this channel.Returns the type of the channel.@Nullable StringReturns the description (if set).getId()Returns the identifier of the channel.@Nullable StringgetLabel()Returns the label (if set).Returns the properties for thisChannelDefinitiontoString()
-
Method Details
-
getId
Returns the identifier of the channel.- Returns:
- the identifier of the channel (neither null, nor empty)
-
getChannelTypeUID
Returns the type of the channel.- Returns:
- the type of the channel (not null)
-
getLabel
Returns the label (if set). If no label is set, getLabel will return null and the default label for theChannelTypeis used.- Returns:
- the label for the channel. Can be null.
-
getDescription
Returns the description (if set). If no description is set, getDescription will return null and the default description for theChannelTypeis used.- Returns:
- the description for the channel. Can be null.
-
getProperties
Returns the properties for thisChannelDefinition- Returns:
- the unmodifiable properties for this
ChannelDefinition(not null)
-
getAutoUpdatePolicy
Returns theAutoUpdatePolicyto use for this channel.- Returns:
- the auto update policy
-
toString
-