Class ChannelGroupUID


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

    • 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 group belongs to
      id - the channel group's id
  • Method Details

    • 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:
      the number of segments
    • getThingUID

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