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 SummaryFields inherited from class org.openhab.core.common.AbstractUIDSEPARATOR
- 
Constructor SummaryConstructorsConstructorDescriptionChannelGroupUID(String channelGroupUid) Parses aChannelGroupUIDfor a given string.ChannelGroupUID(ThingUID thingUID, String id) 
- 
Method SummaryModifier and TypeMethodDescriptiongetId()Returns the id.protected intSpecifies how many segments the UID has to have at least.Returns the thing UIDMethods inherited from class org.openhab.core.thing.UIDequals, getAllSegments, getAsString, getBindingId, hashCode, toStringMethods inherited from class org.openhab.core.common.AbstractUIDgetSegment, isValid, validateSegment
- 
Constructor Details- 
ChannelGroupUIDParses aChannelGroupUIDfor 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 to
- id- the channel group's id
 
 
- 
- 
Method Details- 
getIdReturns the id.- Returns:
- id
 
- 
getMinimalNumberOfSegmentsprotected int getMinimalNumberOfSegments()Description copied from class:AbstractUIDSpecifies how many segments the UID has to have at least.- Specified by:
- getMinimalNumberOfSegmentsin class- AbstractUID
- Returns:
- the number of segments
 
- 
getThingUIDReturns the thing UID- Returns:
- the thing UID
 
 
-