Package org.openhab.core.thing.type
Interface StateChannelTypeBuilder
- All Superinterfaces:
ChannelTypeBuilder<StateChannelTypeBuilder>
@NonNullByDefault
public interface StateChannelTypeBuilder
extends ChannelTypeBuilder<StateChannelTypeBuilder>
Interface for builders for
ChannelTypes of kind STATE- Author:
- Stefan Triller - Initial contribution, Mark Herwege - added unit hint
-
Method Summary
Modifier and TypeMethodDescriptionwithAutoUpdatePolicy(@Nullable AutoUpdatePolicy autoUpdatePolicy) Sets theAutoUpdatePolicyfor theChannelTypewithCommandDescription(@Nullable CommandDescription commandDescription) Sets the list ofCommandOptions for theChannelTypewithStateDescriptionFragment(@Nullable StateDescriptionFragment stateDescriptionFragment) Sets theStateDescriptionFragmentfor theChannelTypewithUnitHint(@Nullable String unitHint) Sets the unitHint for theChannelTypeMethods inherited from interface org.openhab.core.thing.type.ChannelTypeBuilder
build, isAdvanced, withCategory, withConfigDescriptionURI, withDescription, withTag, withTags, withTags
-
Method Details
-
withStateDescriptionFragment
StateChannelTypeBuilder withStateDescriptionFragment(@Nullable StateDescriptionFragment stateDescriptionFragment) Sets theStateDescriptionFragmentfor theChannelType- Parameters:
stateDescriptionFragment- StateDescriptionFragment for the ChannelType- Returns:
- this Builder
-
withAutoUpdatePolicy
Sets theAutoUpdatePolicyfor theChannelType- Parameters:
autoUpdatePolicy- the AutoUpdatePolicy for the ChannelType- Returns:
- this builder
-
withCommandDescription
Sets the list ofCommandOptions for theChannelType- Parameters:
commandDescription- the list ofCommandOptions- Returns:
- this builder
-
withUnitHint
Sets the unitHint for theChannelType- Parameters:
unitHint- the unit hint- Returns:
- this builder
-