Package org.openhab.core.thing.type
Class ChannelTypeRegistry
java.lang.Object
org.openhab.core.thing.type.ChannelTypeRegistry
- Author:
- Dennis Nobel - Initial contribution
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddChannelTypeProvider(ChannelTypeProvider channelTypeProviders) @Nullable ChannelTypegetChannelType(@Nullable ChannelTypeUID channelTypeUID) Returns the channel type for the given UID with the defaultLocale.@Nullable ChannelTypegetChannelType(@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 voidremoveChannelTypeProvider(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
-