Package org.openhab.core.thing.type
Class ChannelGroupTypeBuilder
java.lang.Object
org.openhab.core.thing.type.ChannelGroupTypeBuilder
A
ChannelGroupType
builder.- Author:
- Christoph Weitkamp - Initial contribution, Christoph Weitkamp - Removed "advanced" attribute
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build theChannelGroupType
with the given valuesstatic ChannelGroupTypeBuilder
instance
(ChannelGroupTypeUID channelGroupTypeUID, String label) Create an instance of a ChannelGroupTypeBuilder forChannelGroupType
swithCategory
(String category) Sets the category for theChannelGroupType
withChannelDefinitions
(List<ChannelDefinition> channelDefinitions) Sets the channels for theChannelGroupType
withDescription
(String description) Sets the description for theChannelGroupType
-
Method Details
-
instance
public static ChannelGroupTypeBuilder instance(ChannelGroupTypeUID channelGroupTypeUID, String label) Create an instance of a ChannelGroupTypeBuilder forChannelGroupType
s- Parameters:
channelGroupTypeUID
- UID of theChannelGroupType
label
- Label for theChannelGroupType
- Returns:
- ChannelGroupTypeBuilder for
ChannelGroupType
s
-
build
Build theChannelGroupType
with the given values- Returns:
- the created
ChannelGroupType
-
withDescription
Sets the description for theChannelGroupType
- Parameters:
description
- Description for theChannelGroupType
- Returns:
- this Builder
-
withCategory
Sets the category for theChannelGroupType
- Parameters:
category
- Category for theChannelGroupType
- Returns:
- this Builder
-
withChannelDefinitions
Sets the channels for theChannelGroupType
- Parameters:
channelDefinitions
- The channels thisChannelGroupType
provides (could be null or empty)- Returns:
- this Builder
-