Package org.openhab.core.thing.type
Class ThingType
java.lang.Object
org.openhab.core.thing.type.AbstractDescriptionType
org.openhab.core.thing.type.ThingType
- All Implemented Interfaces:
Identifiable<UID>
- Direct Known Subclasses:
BridgeType
The
ThingType describes a concrete type of Thing.
This description is used as template definition for the creation of the according concrete Thing object.
Hint: This class is immutable.
- Author:
- Michael Grammling - Initial contribution, Dennis Nobel - Initial contribution, Thomas Höfer - Added thing and thing type properties, Simon Kaufmann - Added listed field, Andre Fuechsel - Added representationProperty field, Stefan Triller - Added category field, Andrew Fiddian-Green - Added semanticEquipmentTag
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the binding ID this Thing type belongs to.@Nullable StringReturns the channels thisThingTypeprovides.Returns the channel groups defining the channels thisThingTypeprovides.Returns the properties for thisThingType@Nullable StringGet the name of the representation property of this thing type.@Nullable StringGet the semantic (equipment) tag of this thing type.Returns the unique identifiers of the bridges thisThingTypesupports.getUID()Returns the unique identifier which identifies this Thing type within the overall system.inthashCode()booleanisListed()Check, if things of this thing type should be listed for manually pairing or not.toString()Methods inherited from class org.openhab.core.thing.type.AbstractDescriptionType
getConfigDescriptionURI, getDescription, getLabel
-
Method Details
-
getUID
Returns the unique identifier which identifies this Thing type within the overall system.- Specified by:
getUIDin interfaceIdentifiable<UID>- Overrides:
getUIDin classAbstractDescriptionType- Returns:
- the unique identifier which identifies this Thing type within the overall system
-
getBindingId
Returns the binding ID this Thing type belongs to.- Returns:
- the binding ID this Thing type belongs to (not null)
-
getSupportedBridgeTypeUIDs
Returns the unique identifiers of the bridges thisThingTypesupports.The returned list is immutable.
- Returns:
- the unique identifiers of the bridges this Thing type supports (not null, could be empty)
-
getChannelDefinitions
Returns the channels thisThingTypeprovides.The returned list is immutable.
- Returns:
- the channels this Thing type provides (not null, could be empty)
-
getChannelGroupDefinitions
Returns the channel groups defining the channels thisThingTypeprovides.The returned list is immutable.
- Returns:
- the channel groups defining the channels this Thing type provides (not null, could be empty)
-
getProperties
Returns the properties for thisThingType- Returns:
- the properties for this
ThingType(not null)
-
getCategory
-
isListed
public boolean isListed()Check, if things of this thing type should be listed for manually pairing or not.- Returns:
true, if manual pairing is allowed
-
getRepresentationProperty
Get the name of the representation property of this thing type. May be {code null}.- Returns:
- representation property name or
null
-
equals
-
hashCode
public int hashCode() -
toString
-
getExtensibleChannelTypeIds
-
getSemanticEquipmentTag
Get the semantic (equipment) tag of this thing type. May be {code null}.- Returns:
- the semantic (equipment) tag or
nullif no tag has been configured.
-