Class CurrencyServiceConfigOptionProvider

java.lang.Object
org.openhab.core.config.core.CurrencyServiceConfigOptionProvider
All Implemented Interfaces:
ConfigOptionProvider

@NonNullByDefault public class CurrencyServiceConfigOptionProvider extends Object implements ConfigOptionProvider
The CurrencyServiceConfigOptionProvider is an implementation of ConfigOptionProvider for the available currency providers.
Author:
Jan N. Klug - Initial contribution
  • Constructor Details

    • CurrencyServiceConfigOptionProvider

      public CurrencyServiceConfigOptionProvider()
  • Method Details

    • addCurrencyProvider

      public void addCurrencyProvider(CurrencyProvider currencyProvider)
    • removeCurrencyProvider

      public void removeCurrencyProvider(CurrencyProvider currencyProvider)
    • getParameterOptions

      public @Nullable Collection<ParameterOption> getParameterOptions(URI uri, String param, @Nullable String context, @Nullable Locale locale)
      Description copied from interface: ConfigOptionProvider
      Provides a collection of ParameterOptions.
      Specified by:
      getParameterOptions in interface ConfigOptionProvider
      Parameters:
      uri - the uri of the config description
      param - the parameter name for which the requested options shall be returned
      context - the defined context of the parameter
      locale - the locale in which the result is expected
      Returns:
      the configuration options provided by this provider if any or null otherwise