Package org.openhab.core.config.core
Class ConfigDescriptionBuilder
java.lang.Object
org.openhab.core.config.core.ConfigDescriptionBuilder
The
ConfigDescriptionBuilder class provides a builder for the ConfigDescription class.- Author:
- Christoph Weitkamp - Initial contribution
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aConfigDescriptionwith the settings of this builder.static ConfigDescriptionBuilderCreates a config description builderwithParameter(ConfigDescriptionParameter parameter) Adds aConfigDescriptionParameters.withParameterGroup(ConfigDescriptionParameterGroup parameterGroup) Adds aConfigDescriptionParameterGroupassociated with theConfigDescriptionParameters.withParameterGroups(List<ConfigDescriptionParameterGroup> parameterGroups) Adds a list ofConfigDescriptionParameterGroupassociated with theConfigDescriptionParameters.withParameters(List<ConfigDescriptionParameter> parameters) Adds a list ofConfigDescriptionParameters.
-
Method Details
-
create
Creates a config description builder- Returns:
- the config description builder instance
-
withParameter
Adds aConfigDescriptionParameters.- Returns:
- the updated builder instance
-
withParameters
Adds a list ofConfigDescriptionParameters.- Returns:
- the updated builder instance
-
withParameterGroup
Adds aConfigDescriptionParameterGroupassociated with theConfigDescriptionParameters.- Returns:
- the updated builder instance
-
withParameterGroups
public ConfigDescriptionBuilder withParameterGroups(List<ConfigDescriptionParameterGroup> parameterGroups) Adds a list ofConfigDescriptionParameterGroupassociated with theConfigDescriptionParameters.- Returns:
- the updated builder instance
-
build
Builds aConfigDescriptionwith the settings of this builder.- Returns:
- the desired result
- Throws:
IllegalArgumentException- if the URI is invalid
-