Class ChannelGroupUID


  • @NonNullByDefault
    public class ChannelGroupUID
    extends UID
    ChannelGroupUID represents a unique identifier for channel groups.
    Author:
    Christoph Weitkamp - Initial contribution
    • Constructor Detail

      • ChannelGroupUID

        public ChannelGroupUID​(String channelGroupUid)
        Parses a ChannelGroupUID 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

        public ChannelGroupUID​(ThingUID thingUID,
                               String id)
        Parameters:
        thingUID - the unique identifier of the thing the channel belongs to
        id - the channel group's id
    • Method Detail

      • getId

        public String 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 class AbstractUID
        Returns:
      • getThingUID

        public ThingUID getThingUID()
        Returns the thing UID
        Returns:
        the thing UID