Class ChannelGroupTypeRegistry

java.lang.Object
org.openhab.core.thing.type.ChannelGroupTypeRegistry

@NonNullByDefault public class ChannelGroupTypeRegistry extends Object
The ChannelGroupTypeRegistry tracks all ChannelGroupTypes provided by registered ChannelGroupTypeProviders.
Author:
Henning Treu - Initial contribution
  • Constructor Details

    • ChannelGroupTypeRegistry

      public ChannelGroupTypeRegistry()
  • Method Details

    • getChannelGroupTypes

      public List<ChannelGroupType> getChannelGroupTypes()
      Returns all channel group types with the default Locale.
      Returns:
      all channel group types or empty list if no channel group type exists
    • getChannelGroupTypes

      public List<ChannelGroupType> getChannelGroupTypes(@Nullable Locale locale)
      Returns all channel group types for the given Locale.
      Parameters:
      locale - (can be null)
      Returns:
      all channel group types or empty list if no channel group type exists
    • getChannelGroupType

      public @Nullable ChannelGroupType getChannelGroupType(@Nullable ChannelGroupTypeUID channelGroupTypeUID)
      Returns the channel group type for the given UID with the default Locale.
      Returns:
      channel group type or null if no channel group type for the given UID exists
    • getChannelGroupType

      public @Nullable ChannelGroupType getChannelGroupType(@Nullable ChannelGroupTypeUID channelGroupTypeUID, @Nullable Locale locale)
      Returns the channel group type for the given UID and the given Locale.
      Parameters:
      locale - (can be null)
      Returns:
      channel group type or null if no channel group type for the given UID exists
    • addChannelGroupTypeProvider

      protected void addChannelGroupTypeProvider(ChannelGroupTypeProvider channelGroupTypeProvider)
    • removeChannelGroupTypeProvider

      protected void removeChannelGroupTypeProvider(ChannelGroupTypeProvider channelGroupTypeProvider)