Package org.openhab.core.automation.type
Class TriggerType
java.lang.Object
org.openhab.core.automation.type.ModuleType
org.openhab.core.automation.type.TriggerType
- All Implemented Interfaces:
Identifiable<String>
- Direct Known Subclasses:
CompositeTriggerType
This class provides common functionality for creating
Trigger
instances by supplying their meta-information.
Each TriggerType
is uniquely identifiable in scope of the ModuleTypeRegistry
and defines
ConfigDescriptionParameter
s that are meta-information for configuration of the future Trigger
instances and meta-information for Output
s used from these Trigger
instances.- Author:
- Yordan Mihaylov - Initial contribution
-
Field Summary
Fields inherited from class org.openhab.core.automation.type.ModuleType
configDescriptions
-
Constructor Summary
ConstructorDescriptionTriggerType
(@Nullable String uid, @Nullable List<ConfigDescriptionParameter> configDescriptions, @Nullable String label, @Nullable String description, @Nullable Set<String> tags, @Nullable Visibility visibility, @Nullable List<Output> outputs) Creates an instance ofTriggerType
with UID, label, description, aSet
of tags, visibility, aList
of configuration descriptions and aList
ofOutput
descriptions.TriggerType
(@Nullable String uid, @Nullable List<ConfigDescriptionParameter> configDescriptions, @Nullable List<Output> outputs) Creates an instance ofTriggerType
with base properties - UID, aList
of configuration descriptions and aList
ofOutput
descriptions. -
Method Summary
Modifier and TypeMethodDescriptionGets the meta-information descriptions ofOutput
s defined by this type.Methods inherited from class org.openhab.core.automation.type.ModuleType
equals, getConfigurationDescriptions, getDescription, getLabel, getTags, getUID, getVisibility, hashCode
-
Constructor Details
-
TriggerType
public TriggerType(@Nullable String uid, @Nullable List<ConfigDescriptionParameter> configDescriptions, @Nullable List<Output> outputs) Creates an instance ofTriggerType
with base properties - UID, aList
of configuration descriptions and aList
ofOutput
descriptions.- Parameters:
uid
- theTriggerType
's identifier, ornull
if a random identifier should be generated.configDescriptions
- describing meta-data for the configuration of the futureTrigger
instances.outputs
- aList
withOutput
meta-information descriptions of the futureTrigger
instances.
-
TriggerType
public TriggerType(@Nullable String uid, @Nullable List<ConfigDescriptionParameter> configDescriptions, @Nullable String label, @Nullable String description, @Nullable Set<String> tags, @Nullable Visibility visibility, @Nullable List<Output> outputs) Creates an instance ofTriggerType
with UID, label, description, aSet
of tags, visibility, aList
of configuration descriptions and aList
ofOutput
descriptions.- Parameters:
uid
- theTriggerType
's identifier, ornull
if a random identifier should be generated.configDescriptions
- describing meta-data for the configuration of the futureTrigger
instances.label
- a short and accurate, human-readable label of theTriggerType
.description
- a detailed, human-readable description of usage ofTriggerType
and its benefits.tags
- defines categories that fit theTriggerType
and which can serve as criteria for searching or filtering it.visibility
- determines whether theTriggerType
can be used by anyone if it isVisibility.VISIBLE
or only by its creator if it isVisibility.HIDDEN
. Ifnull
is provided the default visibilityVisibility.VISIBLE
will be used.outputs
- aList
withOutput
meta-information descriptions of the futureTrigger
instances.
-
-
Method Details