Package org.openhab.core.config.core
Class ConfigDescriptionParameterGroupBuilder
java.lang.Object
org.openhab.core.config.core.ConfigDescriptionParameterGroupBuilder
The
ConfigDescriptionParameterGroupBuilder
class provides a builder for the
ConfigDescriptionParameterGroup
class.- Author:
- Christoph Weitkamp - Initial contribution
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds a result with the settings of this builder.Creates a parameter group builderwithAdvanced
(@Nullable Boolean advanced) Sets the advanced flag for this group.withContext
(@Nullable String context) Set.withDescription
(@Nullable String description) Sets the human readable description of the parameter group.Sets the human readable label of the group.
-
Method Details
-
create
Creates a parameter group builder- Parameters:
name
- configuration parameter name- Returns:
- parameter group builder
-
withContext
Set. the context of the group.- Parameters:
context
- group context as a string- Returns:
- the updated builder instance
-
withAdvanced
Sets the advanced flag for this group.- Parameters:
advanced
- true if the group contains advanced properties- Returns:
- the updated builder instance
-
withLabel
Sets the human readable label of the group.- Parameters:
label
- as a string- Returns:
- the updated builder instance
-
withDescription
Sets the human readable description of the parameter group.- Parameters:
description
- as a string- Returns:
- the updated builder instance
-
build
Builds a result with the settings of this builder.- Returns:
- the desired result
- Throws:
IllegalArgumentException
-