Package org.openhab.core.thing
Class ChannelGroupUID
java.lang.Object
org.openhab.core.common.AbstractUID
org.openhab.core.thing.UID
org.openhab.core.thing.ChannelGroupUID
ChannelGroupUID
represents a unique identifier for channel groups.- Author:
- Christoph Weitkamp - Initial contribution
-
Field Summary
Fields inherited from class org.openhab.core.common.AbstractUID
SEPARATOR
-
Constructor Summary
ConstructorDescriptionChannelGroupUID
(String channelGroupUid) Parses aChannelGroupUID
for a given string.ChannelGroupUID
(ThingUID thingUID, String id) -
Method Summary
Modifier and TypeMethodDescriptiongetId()
Returns the id.protected int
Specifies how many segments the UID has to have at least.Returns the thing UIDMethods 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
-
ChannelGroupUID
Parses aChannelGroupUID
for a given string. The UID must be in the format 'bindingId:segment:segment:...'.- Parameters:
channelGroupUid
- uid in form a string (must not be null)
-
ChannelGroupUID
- Parameters:
thingUID
- the unique identifier of the thing the channel group belongs toid
- the channel group's id
-
-
Method Details
-
getId
Returns the id.- Returns:
- id
-
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
-
getThingUID
Returns the thing UID- Returns:
- the thing UID
-