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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCurrencyProvider
(CurrencyProvider currencyProvider) @Nullable Collection<ParameterOption>
getParameterOptions
(URI uri, String param, @Nullable String context, @Nullable Locale locale) Provides a collection ofParameterOption
s.void
removeCurrencyProvider
(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:ConfigOptionProvider
Provides a collection ofParameterOption
s.- Specified by:
getParameterOptions
in 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
null
otherwise
-