Package org.openhab.core.thing.type
Class ChannelGroupTypeUID
java.lang.Object
org.openhab.core.common.AbstractUID
org.openhab.core.thing.UID
org.openhab.core.thing.type.ChannelGroupTypeUID
The
ChannelGroupTypeUID
represents a unique identifier for channel group types.- Author:
- Michael Grammling - Initial contribution.
-
Field Summary
Fields inherited from class org.openhab.core.common.AbstractUID
SEPARATOR
-
Constructor Summary
ConstructorDescriptionChannelGroupTypeUID
(String channelGroupUid) Creates a new instance of this class with the specified parameter.ChannelGroupTypeUID
(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 group.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
-
ChannelGroupTypeUID
Creates a new instance of this class with the specified parameter.- Parameters:
channelGroupUid
- the UID for the channel group
-
ChannelGroupTypeUID
Creates a new instance of this class with the specified parameter.- Parameters:
bindingId
- the binding IDid
- the identifier of the channel group
-
-
Method Details
-
getId
Returns the identifier of the channel group.- Returns:
- the identifier of the channel group (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
-