Package org.openhab.core.thing.binding
Interface ThingTypeProvider
- All Known Implementing Classes:
AbstractStorageBasedTypeProvider
@NonNullByDefault
public interface ThingTypeProvider
The
ThingTypeProvider is responsible for providing thing types.- Author:
- Dennis Nobel - Initial contribution
-
Method Summary
Modifier and TypeMethodDescription@Nullable ThingTypegetThingType(ThingTypeUID thingTypeUID, @Nullable Locale locale) Provides a thing type for the given UID or null if no type for the given UID exists.getThingTypes(@Nullable Locale locale) Provides a collection of thing types
-
Method Details
-
getThingTypes
Provides a collection of thing types- Parameters:
locale- locale (can be null)- Returns:
- the thing types provided by the
ThingTypeProvider
-
getThingType
Provides a thing type for the given UID or null if no type for the given UID exists.- Parameters:
locale- locale (can be null)- Returns:
- thing type for the given UID or null if no type for the given UID exists
-