Class BasicPropertyCondition
- java.lang.Object
- 
- com.inductiveautomation.ignition.common.search.conditions.BasicPropertyCondition
 
- 
- All Implemented Interfaces:
- Condition<PropertySet>,- java.io.Serializable
 
 public class BasicPropertyCondition extends java.lang.Object implements Condition<PropertySet> 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:
- Serialized Form
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description protected static classBasicPropertyCondition.SubPropertyCondition
 - 
Constructor SummaryConstructors Constructor Description BasicPropertyCondition()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description BasicPropertyConditionanyRequiredProperty(java.util.List<Property<?>> properties, java.lang.Object value, ComparisonOperator op)Adds a sub-conditions that can check multiple properties for the same condition.java.util.List<Property<?>>getProperties()Returns a collated list of all the properties used in all the internal AND conditions.booleanpasses(PropertySet target)Returns whether the provided value passes the condition.BasicPropertyConditionrequiredProperty(Property<?> property, java.lang.Object value, ComparisonOperator op)Adds a required property sub-condition.
 
- 
- 
- 
Method Detail- 
passespublic boolean passes(PropertySet target) Description copied from interface:ConditionReturns whether the provided value passes the condition.- Specified by:
- passesin interface- Condition<PropertySet>
 
 - 
requiredPropertypublic BasicPropertyCondition requiredProperty(Property<?> property, java.lang.Object value, ComparisonOperator op) Adds a required property sub-condition. All required sub-conditions must pass for the overall condition to pass.
 - 
anyRequiredPropertypublic BasicPropertyCondition anyRequiredProperty(java.util.List<Property<?>> properties, java.lang.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.
 - 
getPropertiespublic java.util.List<Property<?>> 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.
 
- 
 
-