Uses of Class
org.openhab.core.thing.binding.builder.ThingBuilder
-
Uses of ThingBuilder in org.openhab.core.thing.binding
Modifier and TypeMethodDescriptionprotected ThingBuilder
BaseThingHandler.editThing()
Creates a thing builder, which allows to modify the thing. -
Uses of ThingBuilder in org.openhab.core.thing.binding.builder
Modifier and TypeClassDescriptionclass
This class allows the easy construction of aBridge
instance using the builder pattern.Modifier and TypeMethodDescriptionstatic ThingBuilder
Create a new thingThingBuilder
for a copy of the given thingstatic ThingBuilder
ThingBuilder.create
(ThingTypeUID thingTypeUID, String thingId) Create a newThingBuilder
static ThingBuilder
ThingBuilder.create
(ThingTypeUID thingTypeUID, ThingUID thingUID) Create a newThingBuilder
ThingBuilder.withBridge
(@Nullable ThingUID bridgeUID) Set the bridge for this thingThingBuilder.withChannel
(Channel channel) Adds the given channel to the thingThingBuilder.withChannels
(List<Channel> channels) Replaces all channels of this thing with the given channelsThingBuilder.withChannels
(Channel... channels) Replaces all channels of this thing with the given channelsThingBuilder.withConfiguration
(Configuration configuration) Set (or replace) the configuration of the thingSets thelabel
for the thingThingBuilder.withLocation
(@Nullable String location) Set the location for this thingThingBuilder.withoutChannel
(ChannelUID channelUID) Removes the channel with the given UID from the thingThingBuilder.withoutChannels
(List<Channel> channels) Removes the given channels from the thingThingBuilder.withoutChannels
(Channel... channels) Removes the given channels from the thingThingBuilder.withProperties
(Map<String, String> properties) Set/replace the properties for this thingThingBuilder.withProperty
(String key, String value) Set / replace a single property for this thing