Package org.openhab.core.automation.type
Class ConditionType
java.lang.Object
org.openhab.core.automation.type.ModuleType
org.openhab.core.automation.type.ConditionType
- All Implemented Interfaces:
Identifiable<String>
- Direct Known Subclasses:
CompositeConditionType
This class provides common functionality for creating
Condition
instances by supplying their
meta-information. Each ConditionType
is uniquely identifiable in scope of the ModuleTypeRegistry
and
defines ConfigDescriptionParameter
s that are meta-information for configuration of the future
Condition
instances and meta-information for Input
s used from these Condition
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
ConstructorDescriptionConditionType
(@Nullable String uid, @Nullable List<ConfigDescriptionParameter> configDescriptions, @Nullable String label, @Nullable String description, @Nullable Set<String> tags, @Nullable Visibility visibility, @Nullable List<Input> inputs) Creates an instance ofConditionType
with uid, label, description, aSet
of tags, visibility, aList
of configuration descriptions and aList
ofInput
descriptions.ConditionType
(@Nullable String uid, @Nullable List<ConfigDescriptionParameter> configDescriptions, @Nullable List<Input> inputs) Creates an instance ofConditionType
with base properties - UID, aList
of configuration descriptions and aList
ofInput
descriptions. -
Method Summary
Modifier and TypeMethodDescriptionGets the meta-information descriptions ofInput
s defined by thisConditionType
.Methods inherited from class org.openhab.core.automation.type.ModuleType
equals, getConfigurationDescriptions, getDescription, getLabel, getTags, getUID, getVisibility, hashCode
-
Constructor Details
-
ConditionType
public ConditionType(@Nullable String uid, @Nullable List<ConfigDescriptionParameter> configDescriptions, @Nullable List<Input> inputs) Creates an instance ofConditionType
with base properties - UID, aList
of configuration descriptions and aList
ofInput
descriptions.- Parameters:
uid
- theConditionType
's identifier, ornull
if a random identifier should be generated.configDescriptions
- describing meta-data for the configuration of the futureCondition
instances.inputs
- aList
withInput
meta-information descriptions of the futureCondition
instances.
-
ConditionType
public ConditionType(@Nullable String uid, @Nullable List<ConfigDescriptionParameter> configDescriptions, @Nullable String label, @Nullable String description, @Nullable Set<String> tags, @Nullable Visibility visibility, @Nullable List<Input> inputs) Creates an instance ofConditionType
with uid, label, description, aSet
of tags, visibility, aList
of configuration descriptions and aList
ofInput
descriptions.- Parameters:
uid
- theConditionType
's identifier, ornull
if a random identifier should be generated.configDescriptions
- describing meta-data for the configuration of the futureCondition
instances.label
- a short and accurate, human-readable label of theConditionType
.description
- a detailed, human-readable description of usage ofConditionType
and its benefits.tags
- defines categories that fit theConditionType
and which can serve as criteria for searching or filtering it.visibility
- determines whether theConditionType
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 futureCondition
instances.
-
-
Method Details
-
getInputs
Gets the meta-information descriptions ofInput
s defined by thisConditionType
.
-