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 Details

    • getThingTypes

      Collection<ThingType> getThingTypes(@Nullable Locale locale)
      Provides a collection of thing types
      Parameters:
      locale - locale (can be null)
      Returns:
      the thing types provided by the ThingTypeProvider
    • getThingType

      @Nullable ThingType getThingType(ThingTypeUID thingTypeUID, @Nullable Locale locale)
      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