Package org.openhab.core.thing.type
Class ThingTypeRegistry
java.lang.Object
org.openhab.core.thing.type.ThingTypeRegistry
- Author:
- Oliver Libutzki - Initial contribution, Dennis Nobel - Added locale support
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addThingTypeProvider
(ThingTypeProvider thingTypeProvider) @Nullable ChannelType
getChannelType
(Channel channel) Returns the channel type for a given channel.@Nullable ChannelType
getChannelType
(Channel channel, @Nullable Locale locale) Returns the channel type for a given channel and locale.@Nullable ThingType
getThingType
(ThingTypeUID thingTypeUID) Returns a thing type for a given thing type UID.@Nullable ThingType
getThingType
(ThingTypeUID thingTypeUID, @Nullable Locale locale) Returns a thing type for a given thing type UID.Returns all thing types.getThingTypes
(@Nullable Locale locale) Returns all thing types.getThingTypes
(String bindingId) Returns thing types for a given binding id.getThingTypes
(String bindingId, @Nullable Locale locale) Returns thing types for a given binding id.protected void
removeThingTypeProvider
(ThingTypeProvider thingTypeProvider)
-
Constructor Details
-
ThingTypeRegistry
-
-
Method Details
-
getThingTypes
Returns all thing types.- Parameters:
locale
- locale (can be null)- Returns:
- all thing types
-
getThingTypes
Returns all thing types.- Returns:
- all thing types
-
getThingTypes
Returns thing types for a given binding id.- Parameters:
bindingId
- binding idlocale
- locale (can be null)- Returns:
- thing types for given binding id
-
getThingTypes
Returns thing types for a given binding id.- Parameters:
bindingId
- binding id- Returns:
- thing types for given binding id
-
getThingType
Returns a thing type for a given thing type UID.- Parameters:
thingTypeUID
- thing type UIDlocale
- locale (can be null)- Returns:
- thing type for given UID or null if no thing type with this UID was found
-
getThingType
Returns a thing type for a given thing type UID.- Parameters:
thingTypeUID
- thing type UID- Returns:
- thing type for given UID or null if no thing type with this UID was found
-
getChannelType
Returns the channel type for a given channel.- Parameters:
channel
- channel- Returns:
- channel type or null if no channel type was found
-
getChannelType
Returns the channel type for a given channel and locale.- Parameters:
channel
- channellocale
- locale (can be null)- Returns:
- channel type or null if no channel type was found
-
addThingTypeProvider
-
removeThingTypeProvider
-