Package org.openhab.core.thing.type
Interface StateChannelTypeBuilder
- All Superinterfaces:
ChannelTypeBuilder<StateChannelTypeBuilder>
@NonNullByDefault
public interface StateChannelTypeBuilder
extends ChannelTypeBuilder<StateChannelTypeBuilder>
Interface for builders for
ChannelType
s of kind STATE- Author:
- Stefan Triller - Initial contribution
-
Method Summary
Modifier and TypeMethodDescriptionwithAutoUpdatePolicy
(@Nullable AutoUpdatePolicy autoUpdatePolicy) Sets theAutoUpdatePolicy
for theChannelType
withCommandDescription
(@Nullable CommandDescription commandDescription) Sets the list ofCommandOption
s for theChannelType
withStateDescriptionFragment
(@Nullable StateDescriptionFragment stateDescriptionFragment) Sets theStateDescriptionFragment
for theChannelType
Methods inherited from interface org.openhab.core.thing.type.ChannelTypeBuilder
build, isAdvanced, withCategory, withConfigDescriptionURI, withDescription, withTag, withTags
-
Method Details
-
withStateDescriptionFragment
StateChannelTypeBuilder withStateDescriptionFragment(@Nullable StateDescriptionFragment stateDescriptionFragment) Sets theStateDescriptionFragment
for theChannelType
- Parameters:
stateDescriptionFragment
- StateDescriptionFragment for the ChannelType- Returns:
- this Builder
-
withAutoUpdatePolicy
Sets theAutoUpdatePolicy
for theChannelType
- Parameters:
autoUpdatePolicy
- the AutoUpdatePolicy for the ChannelType- Returns:
- this builder
-
withCommandDescription
Sets the list ofCommandOption
s for theChannelType
- Parameters:
commandDescription
- the list ofCommandOption
s- Returns:
- this builder
-