Package org.openhab.core.thing.type
Class ChannelTypeUID
java.lang.Object
org.openhab.core.common.AbstractUID
org.openhab.core.thing.UID
org.openhab.core.thing.type.ChannelTypeUID
The
ChannelTypeUID
represents a unique identifier for channel types.- Author:
- Dennis Nobel - Initial contribution, Jochen Hiller - Bugfix 455434: added default constructor, Dennis Nobel - Javadoc added
-
Field Summary
Fields inherited from class org.openhab.core.common.AbstractUID
SEPARATOR
-
Constructor Summary
ConstructorDescriptionChannelTypeUID
(String channelUid) Creates a new instance of this class with the specified parameter.ChannelTypeUID
(String bindingId, String id) Creates a new instance of this class with the specified parameter. -
Method Summary
Modifier and TypeMethodDescriptiongetId()
Returns the identifier of the channel.protected int
Specifies how many segments the UID has to have at least.Methods inherited from class org.openhab.core.thing.UID
equals, getAllSegments, getAsString, getBindingId, hashCode, toString
Methods inherited from class org.openhab.core.common.AbstractUID
getSegment, isValid, validateSegment
-
Constructor Details
-
ChannelTypeUID
Creates a new instance of this class with the specified parameter.- Parameters:
channelUid
- the UID for the channel
-
ChannelTypeUID
Creates a new instance of this class with the specified parameter.- Parameters:
bindingId
- the binding IDid
- the identifier of the channel
-
-
Method Details
-
getId
Returns the identifier of the channel.- Returns:
- the identifier of the channel (neither null, nor empty)
-
getMinimalNumberOfSegments
protected int getMinimalNumberOfSegments()Description copied from class:AbstractUID
Specifies how many segments the UID has to have at least.- Specified by:
getMinimalNumberOfSegments
in classAbstractUID
- Returns:
- the number of segments
-