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 ConfigDescriptionParameters that are meta-information for configuration of the future
Condition instances and meta-information for Inputs 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
ConstructorsConstructorDescriptionConditionType(@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 ofConditionTypewith uid, label, description, aSetof tags, visibility, aListof configuration descriptions and aListofInputdescriptions.ConditionType(@Nullable String uid, @Nullable List<ConfigDescriptionParameter> configDescriptions, @Nullable List<Input> inputs) Creates an instance ofConditionTypewith base properties - UID, aListof configuration descriptions and aListofInputdescriptions. -
Method Summary
Modifier and TypeMethodDescriptionGets the meta-information descriptions ofInputs 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 ofConditionTypewith base properties - UID, aListof configuration descriptions and aListofInputdescriptions.- Parameters:
uid- theConditionType's identifier, ornullif a random identifier should be generated.configDescriptions- describing meta-data for the configuration of the futureConditioninstances.inputs- aListwithInputmeta-information descriptions of the futureConditioninstances.
-
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 ofConditionTypewith uid, label, description, aSetof tags, visibility, aListof configuration descriptions and aListofInputdescriptions.- Parameters:
uid- theConditionType's identifier, ornullif a random identifier should be generated.configDescriptions- describing meta-data for the configuration of the futureConditioninstances.label- a short and accurate, human-readable label of theConditionType.description- a detailed, human-readable description of usage ofConditionTypeand its benefits.tags- defines categories that fit theConditionTypeand which can serve as criteria for searching or filtering it.visibility- determines whether theConditionTypecan be used by anyone if it isVisibility.VISIBLEor only by its creator if it isVisibility.HIDDEN.inputs- aListwithInputmeta-information descriptions of the futureConditioninstances.
-
-
Method Details
-
getInputs
Gets the meta-information descriptions ofInputs defined by thisConditionType.
-