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
ConfigDescriptionParameter
s that are meta-information for configuration of the future Action
instances and meta-information for Input
s and Output
s 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
ConstructorDescriptionActionType
(@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 ofActionType
with base properties - UID, aList
of configuration descriptions and aList
ofInput
definitions.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 ofActionType
with base properties - UID, aList
of configuration descriptions and aList
ofInput
definitions.- Parameters:
uid
- theActionType
's identifier, ornull
if a random identifier should be generated.configDescriptions
- describing meta-data for the configuration of the futureAction
instances.inputs
- aList
withInput
meta-information descriptions of the futureAction
instances.
-
ActionType
public ActionType(@Nullable String uid, @Nullable List<ConfigDescriptionParameter> configDescriptions, @Nullable List<Input> inputs, @Nullable List<Output> outputs) Creates an instance of theActionType
with UID, aList
of configuration descriptions, aList
ofInput
definitions and aList
ofOutput
descriptions.- Parameters:
uid
- theActionType
's identifier, ornull
if a random identifier should be generated.configDescriptions
- describing meta-data for the configuration of the futureAction
instances.inputs
- aList
withInput
meta-information descriptions of the futureAction
instances.outputs
- aList
withOutput
meta-information descriptions of the futureAction
instances.
-
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 ofActionType
with uid, label, description, aSet
of tags, visibility, aList
of configuration descriptions, aList
ofInput
descriptions and aList
ofOutput
descriptions.- Parameters:
uid
- theActionType
's identifier, ornull
if a random identifier should be generated.configDescriptions
- describing meta-data for the configuration of the futureAction
instances.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 theActionType
and which can serve as criteria for searching or filtering it.visibility
- determines whether theActionType
can be used by anyone if it isVisibility.VISIBLE
or only by its creator if it isVisibility.HIDDEN
.inputs
- aList
withInput
meta-information descriptions of the futureAction
instances.outputs
- aList
withOutput
meta-information descriptions of the futureAction
instances.
-
-
Method Details