Class BasicPropertyCondition
java.lang.Object
com.inductiveautomation.ignition.common.search.conditions.BasicPropertyCondition
- All Implemented Interfaces:
Condition<PropertySet>
,Serializable
Value condition appropriate for use with simple Properties that have a single String-able value or numeric value.
Also accepts (*) and (?) wildcards for string values, but you must use the ComparisonOperator.Like when
constructing the condition. The compiled pattern is cached for repeated searches when using the Like operator.
- Since:
- 8.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionanyRequiredProperty
(List<Property<?>> properties, Object value, ComparisonOperator op) Adds a sub-conditions that can check multiple properties for the same condition.Returns a collated list of all the properties used in all the internal AND conditions.boolean
passes
(PropertySet target) Returns whether the provided value passes the condition.requiredProperty
(Property<?> property, Object value, ComparisonOperator op) Adds a required property sub-condition.
-
Constructor Details
-
BasicPropertyCondition
public BasicPropertyCondition()
-
-
Method Details
-
passes
Description copied from interface:Condition
Returns whether the provided value passes the condition.- Specified by:
passes
in interfaceCondition<PropertySet>
-
requiredProperty
public BasicPropertyCondition requiredProperty(Property<?> property, Object value, ComparisonOperator op) Adds a required property sub-condition. All required sub-conditions must pass for the overall condition to pass. -
anyRequiredProperty
public BasicPropertyCondition anyRequiredProperty(List<Property<?>> properties, Object value, ComparisonOperator op) Adds a sub-conditions that can check multiple properties for the same condition. Any property that meets the sub-condition will allow the overall condition to pass. -
getProperties
Returns a collated list of all the properties used in all the internal AND conditions. Useful to give an idea of the composition of the condition.
-