Interface ThingTypeProvider


  • @NonNullByDefault
    public interface ThingTypeProvider
    The ThingTypeProvider is responsible for providing thing types.
    Author:
    Dennis Nobel - Initial contribution
    • Method Detail

      • 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