Package org.openhab.core.thing
Interface Bridge
- All Superinterfaces:
Identifiable<ThingUID>
,Thing
- Author:
- Dennis Nobel - Initial contribution, Christoph Weitkamp - Added method
getThing(ThingUID)
-
Field Summary
Fields inherited from interface org.openhab.core.thing.Thing
PROPERTY_FIRMWARE_VERSION, PROPERTY_HARDWARE_VERSION, PROPERTY_MAC_ADDRESS, PROPERTY_MODEL_ID, PROPERTY_SERIAL_NUMBER, PROPERTY_VENDOR
-
Method Summary
Modifier and TypeMethodDescription@Nullable BridgeHandler
Gets the bridge handler.@Nullable Thing
Gets the thing for the given UID or null if no thing with the UID exists.Returns the children of the bridge.Methods inherited from interface org.openhab.core.thing.Thing
getBridgeUID, getChannel, getChannel, getChannels, getChannelsOfGroup, getConfiguration, getLabel, getLocation, getProperties, getStatus, getStatusInfo, getThingTypeUID, getUID, isEnabled, setBridgeUID, setHandler, setLabel, setLocation, setProperties, setProperty, setStatusInfo
-
Method Details
-
getThing
Gets the thing for the given UID or null if no thing with the UID exists.- Parameters:
thingUID
- thing UID- Returns:
- the thing for the given UID or null if no thing with the UID exists
-
getThings
Returns the children of the bridge.- Returns:
- children
-
getHandler
@Nullable BridgeHandler getHandler()Gets the bridge handler.- Specified by:
getHandler
in interfaceThing
- Returns:
- the handler which can be null for a Thing that is not initialized. Note that a Bridge is guaranteed to be initialized before its children. It is therefore safe to call getBridge().getHandler() for a subordinate Thing
-