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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the binding ID this Thing type belongs to.@Nullable String
Returns the channels thisThingType
provides.Returns the channel groups defining the channels thisThingType
provides.Returns the properties for thisThingType
@Nullable String
Get the name of the representation property of this thing type.Returns the unique identifiers of the bridges thisThingType
supports.getUID()
Returns the unique identifier which identifies this Thing type within the overall system.int
hashCode()
boolean
isListed()
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:
getUID
in interfaceIdentifiable<UID>
- Overrides:
getUID
in 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 thisThingType
supports.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 thisThingType
provides.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 thisThingType
provides.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
-