Package org.openhab.core.config.core
Interface ConfigOptionProvider
- All Known Subinterfaces:
MagicService
- All Known Implementing Classes:
CurrencyServiceConfigOptionProvider,ScriptTransformationService
@NonNullByDefault
public interface ConfigOptionProvider
The
ConfigOptionProvider can be implemented and registered as an OSGi
service to provide ConfigDescriptions options.- Author:
- Chris Jackson - Initial contribution, Kai Kreuzer - added support for contexts
-
Method Summary
Modifier and TypeMethodDescription@Nullable Collection<ParameterOption> getParameterOptions(URI uri, String param, @Nullable String context, @Nullable Locale locale) Provides a collection ofParameterOptions.
-
Method Details
-
getParameterOptions
@Nullable Collection<ParameterOption> getParameterOptions(URI uri, String param, @Nullable String context, @Nullable Locale locale) Provides a collection ofParameterOptions.- 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
-