Package org.openhab.core.config.core
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCurrencyProvider(CurrencyProvider currencyProvider) @Nullable Collection<ParameterOption> getParameterOptions(URI uri, String param, @Nullable String context, @Nullable Locale locale) Provides a collection ofParameterOptions.voidremoveCurrencyProvider(CurrencyProvider currencyProvider)
-
Constructor Details
-
CurrencyServiceConfigOptionProvider
public CurrencyServiceConfigOptionProvider()
-
-
Method Details
-
addCurrencyProvider
-
removeCurrencyProvider
-
getParameterOptions
public @Nullable Collection<ParameterOption> getParameterOptions(URI uri, String param, @Nullable String context, @Nullable Locale locale) Description copied from interface:ConfigOptionProviderProvides a collection ofParameterOptions.- Specified by:
getParameterOptionsin interfaceConfigOptionProvider- Parameters:
uri- the uri of the config descriptionparam- the parameter name for which the requested options shall be returnedcontext- the defined context of the parameterlocale- the locale in which the result is expected- Returns:
- the configuration options provided by this provider if any or
nullotherwise
-