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
ConfigDescriptionParameters that are meta-information for configuration of the future Trigger
instances and meta-information for Outputs 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
ConstructorsConstructorDescriptionTriggerType(@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 ofTriggerTypewith UID, label, description, aSetof tags, visibility, aListof configuration descriptions and aListofOutputdescriptions.TriggerType(@Nullable String uid, @Nullable List<ConfigDescriptionParameter> configDescriptions, @Nullable List<Output> outputs) Creates an instance ofTriggerTypewith base properties - UID, aListof configuration descriptions and aListofOutputdescriptions. -
Method Summary
Modifier and TypeMethodDescriptionGets the meta-information descriptions ofOutputs 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 ofTriggerTypewith base properties - UID, aListof configuration descriptions and aListofOutputdescriptions.- Parameters:
uid- theTriggerType's identifier, ornullif a random identifier should be generated.configDescriptions- describing meta-data for the configuration of the futureTriggerinstances.outputs- aListwithOutputmeta-information descriptions of the futureTriggerinstances.
-
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 ofTriggerTypewith UID, label, description, aSetof tags, visibility, aListof configuration descriptions and aListofOutputdescriptions.- Parameters:
uid- theTriggerType's identifier, ornullif a random identifier should be generated.configDescriptions- describing meta-data for the configuration of the futureTriggerinstances.label- a short and accurate, human-readable label of theTriggerType.description- a detailed, human-readable description of usage ofTriggerTypeand its benefits.tags- defines categories that fit theTriggerTypeand which can serve as criteria for searching or filtering it.visibility- determines whether theTriggerTypecan be used by anyone if it isVisibility.VISIBLEor only by its creator if it isVisibility.HIDDEN. Ifnullis provided the default visibilityVisibility.VISIBLEwill be used.outputs- aListwithOutputmeta-information descriptions of the futureTriggerinstances.
-
-
Method Details