Package org.openhab.core.automation.type
Class ActionType
java.lang.Object
org.openhab.core.automation.type.ModuleType
org.openhab.core.automation.type.ActionType
- All Implemented Interfaces:
Identifiable<String>
- Direct Known Subclasses:
CompositeActionType
This class provides common functionality for creating
Action instances by supplying their meta-information.
Each ActionType is uniquely identifiable in scope of the ModuleTypeRegistry and defines
ConfigDescriptionParameters that are meta-information for configuration of the future Action
instances and meta-information for Inputs and Outputs used from these Action instances.- Author:
- Yordan Mihaylov - Initial contribution, Ana Dimova - Initial contribution, Vasil Ilchev - Initial contribution
-
Field Summary
Fields inherited from class org.openhab.core.automation.type.ModuleType
configDescriptions -
Constructor Summary
ConstructorsConstructorDescriptionActionType(@Nullable String uid, @Nullable List<ConfigDescriptionParameter> configDescriptions, @Nullable String label, @Nullable String description, @Nullable Set<String> tags, @Nullable Visibility visibility, @Nullable List<Input> inputs, @Nullable List<Output> outputs) ActionType(@Nullable String uid, @Nullable List<ConfigDescriptionParameter> configDescriptions, @Nullable List<Input> inputs) Creates an instance ofActionTypewith base properties - UID, aListof configuration descriptions and aListofInputdefinitions.ActionType(@Nullable String uid, @Nullable List<ConfigDescriptionParameter> configDescriptions, @Nullable List<Input> inputs, @Nullable List<Output> outputs) -
Method Summary
Methods inherited from class org.openhab.core.automation.type.ModuleType
equals, getConfigurationDescriptions, getDescription, getLabel, getTags, getUID, getVisibility, hashCode
-
Constructor Details
-
ActionType
public ActionType(@Nullable String uid, @Nullable List<ConfigDescriptionParameter> configDescriptions, @Nullable List<Input> inputs) Creates an instance ofActionTypewith base properties - UID, aListof configuration descriptions and aListofInputdefinitions.- Parameters:
uid- theActionType's identifier, ornullif a random identifier should be generated.configDescriptions- describing meta-data for the configuration of the futureActioninstances.inputs- aListwithInputmeta-information descriptions of the futureActioninstances.
-
ActionType
public ActionType(@Nullable String uid, @Nullable List<ConfigDescriptionParameter> configDescriptions, @Nullable List<Input> inputs, @Nullable List<Output> outputs) Creates an instance of theActionTypewith UID, aListof configuration descriptions, aListofInputdefinitions and aListofOutputdescriptions.- Parameters:
uid- theActionType's identifier, ornullif a random identifier should be generated.configDescriptions- describing meta-data for the configuration of the futureActioninstances.inputs- aListwithInputmeta-information descriptions of the futureActioninstances.outputs- aListwithOutputmeta-information descriptions of the futureActioninstances.
-
ActionType
public ActionType(@Nullable String uid, @Nullable List<ConfigDescriptionParameter> configDescriptions, @Nullable String label, @Nullable String description, @Nullable Set<String> tags, @Nullable Visibility visibility, @Nullable List<Input> inputs, @Nullable List<Output> outputs) Creates an instance ofActionTypewith uid, label, description, aSetof tags, visibility, aListof configuration descriptions, aListofInputdescriptions and aListofOutputdescriptions.- Parameters:
uid- theActionType's identifier, ornullif a random identifier should be generated.configDescriptions- describing meta-data for the configuration of the futureActioninstances.label- is a short and accurate name of theActionType.description- is a short and understandable description of which can be used theActionType.tags- defines categories that fit theActionTypeand which can serve as criteria for searching or filtering it.visibility- determines whether theActionTypecan be used by anyone if it isVisibility.VISIBLEor only by its creator if it isVisibility.HIDDEN.inputs- aListwithInputmeta-information descriptions of the futureActioninstances.outputs- aListwithOutputmeta-information descriptions of the futureActioninstances.
-
-
Method Details