Package org.openhab.core.thing.type
Class ChannelGroupTypeRegistry
java.lang.Object
org.openhab.core.thing.type.ChannelGroupTypeRegistry
The
ChannelGroupTypeRegistry
tracks all ChannelGroupType
s provided by
registered ChannelGroupTypeProvider
s.- Author:
- Henning Treu - Initial contribution
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addChannelGroupTypeProvider
(ChannelGroupTypeProvider channelGroupTypeProvider) @Nullable ChannelGroupType
getChannelGroupType
(@Nullable ChannelGroupTypeUID channelGroupTypeUID) Returns the channel group type for the given UID with the defaultLocale
.@Nullable ChannelGroupType
getChannelGroupType
(@Nullable ChannelGroupTypeUID channelGroupTypeUID, @Nullable Locale locale) Returns the channel group type for the given UID and the givenLocale
.Returns all channel group types with the defaultLocale
.getChannelGroupTypes
(@Nullable Locale locale) Returns all channel group types for the givenLocale
.protected void
removeChannelGroupTypeProvider
(ChannelGroupTypeProvider channelGroupTypeProvider)
-
Constructor Details
-
ChannelGroupTypeRegistry
public ChannelGroupTypeRegistry()
-
-
Method Details
-
getChannelGroupTypes
Returns all channel group types with the defaultLocale
.- Returns:
- all channel group types or empty list if no channel group type exists
-
getChannelGroupTypes
Returns all channel group types for the givenLocale
.- 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 defaultLocale
.- 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 givenLocale
.- Parameters:
locale
- (can be null)- Returns:
- channel group type or null if no channel group type for the given UID exists
-
addChannelGroupTypeProvider
-
removeChannelGroupTypeProvider
-