Package org.openhab.core.thing.type
Class AbstractDescriptionType
java.lang.Object
org.openhab.core.thing.type.AbstractDescriptionType
- All Implemented Interfaces:
Identifiable<UID>
- Direct Known Subclasses:
ChannelGroupType,ChannelType,ThingType
@NonNullByDefault
public abstract class AbstractDescriptionType
extends Object
implements Identifiable<UID>
The
AbstractDescriptionType class is the base class for a ThingType,
a BridgeType a ChannelType or a ChannelGroupType.
This class contains only properties and methods accessing them.
Hint: This class is immutable.
- Author:
- Michael Grammling - Initial contribution
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractDescriptionType(UID uid, String label, @Nullable String description, @Nullable URI configDescriptionURI) Creates a new instance of this class with the specified parameters. -
Method Summary
Modifier and TypeMethodDescription@Nullable URIReturns the link to a concreteConfigDescription.@Nullable StringReturns the human-readable description for the according type.getLabel()Returns the human-readable label for the according type.getUID()Returns the unique identifier which identifies the according type within the overall system.
-
Constructor Details
-
AbstractDescriptionType
protected AbstractDescriptionType(UID uid, String label, @Nullable String description, @Nullable URI configDescriptionURI) throws IllegalArgumentException Creates a new instance of this class with the specified parameters.- Parameters:
uid- the unique identifier which identifies the according type within the overall system (must neither be null, nor empty)label- the human-readable label for the according type (must neither be null nor empty)description- the human-readable description for the according type (could be null or empty)configDescriptionURI- theURIthat references theConfigDescriptionof this type- Throws:
IllegalArgumentException- if the UID is null, or the label is null or empty
-
-
Method Details
-
getUID
Returns the unique identifier which identifies the according type within the overall system.- Specified by:
getUIDin interfaceIdentifiable<UID>- Returns:
- the unique identifier which identifies the according type within the overall system (neither null, nor empty)
-
getLabel
Returns the human-readable label for the according type.- Returns:
- the human-readable label for the according type (neither null, nor empty)
-
getDescription
Returns the human-readable description for the according type.- Returns:
- the human-readable description for the according type (could be null or empty)
-
getConfigDescriptionURI
Returns the link to a concreteConfigDescription.- Returns:
- the link to a concrete ConfigDescription
-