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 AutoUpdatePolicy
Returns theAutoUpdatePolicy
to use for this channel.Returns the type of the channel.@Nullable String
Returns the description (if set).getId()
Returns the identifier of the channel.@Nullable String
getLabel()
Returns the label (if set).Returns the properties for thisChannelDefinition
toString()
-
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 theChannelType
is 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 theChannelType
is 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 theAutoUpdatePolicy
to use for this channel.- Returns:
- the auto update policy
-
toString
-