Package org.openhab.core.thing.type
Class ChannelTypeRegistry
java.lang.Object
org.openhab.core.thing.type.ChannelTypeRegistry
- Author:
- Dennis Nobel - Initial contribution
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addChannelTypeProvider
(ChannelTypeProvider channelTypeProviders) @Nullable ChannelType
getChannelType
(@Nullable ChannelTypeUID channelTypeUID) Returns the channel type for the given UID with the defaultLocale
.@Nullable ChannelType
getChannelType
(@Nullable ChannelTypeUID channelTypeUID, @Nullable Locale locale) Returns the channel type for the given UID and the givenLocale
.Returns all channel types with the defaultLocale
.getChannelTypes
(@Nullable Locale locale) Returns all channel types for the givenLocale
.protected void
removeChannelTypeProvider
(ChannelTypeProvider channelTypeProviders)
-
Constructor Details
-
ChannelTypeRegistry
public ChannelTypeRegistry()
-
-
Method Details
-
getChannelTypes
Returns all channel types with the defaultLocale
.- Returns:
- all channel types or empty list if no channel type exists
-
getChannelTypes
Returns all channel types for the givenLocale
.- Parameters:
locale
- (can be null)- Returns:
- all channel types or empty list if no channel type exists
-
getChannelType
Returns the channel type for the given UID with the defaultLocale
.- Returns:
- channel type or null if no channel type for the given UID exists
-
getChannelType
public @Nullable ChannelType getChannelType(@Nullable ChannelTypeUID channelTypeUID, @Nullable Locale locale) Returns the channel type for the given UID and the givenLocale
.- Parameters:
locale
- (can be null)- Returns:
- channel type or null if no channel type for the given UID exists
-
addChannelTypeProvider
-
removeChannelTypeProvider
-