Class PropertyCondition
- java.lang.Object
- 
- com.inductiveautomation.ignition.common.alarming.query.conditions.PropertyCondition
 
- 
- All Implemented Interfaces:
- Condition<PropertySet>,- java.io.Serializable
 
 public class PropertyCondition extends java.lang.Object implements Condition<PropertySet> A condition that support a number of property related sub-conditions. Important: This condition was originally created for alarm status querying, and then updated for tag querying. Be careful about changing it too much.- See Also:
- Serialized Form
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classPropertyCondition.GsonAdapterstatic classPropertyCondition.SubPropertyCondition
 - 
Constructor SummaryConstructors Constructor Description PropertyCondition()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description PropertyConditiondefined(Property<?> property)Adds a requirement that a property be defined.PropertyConditiondefined(java.lang.String property)booleanequals(java.lang.Object o)protected Property<?>getAlarmProperty(java.lang.String propName)java.util.List<PropertyCondition.SubPropertyCondition>getAndConditions()java.util.Set<Property<?>>getDefined()java.util.Set<Property<?>>getNotDefined()java.util.Set<Property<?>>getOverridden()inthashCode()PropertyConditionnotDefined(Property<?> property)PropertyConditionnotDefined(java.lang.String property)<T> PropertyConditionoptionalProperty(Property<T> property, T value, ComparisonOperator op)Adds an optional property sub-condition.PropertyConditionoptionalProperty(java.lang.String property, java.lang.Object value, ComparisonOperator op)Deprecated.as the string name was expected to be an alarm property.PropertyConditionoverridden(Property<?> property)PropertyConditionoverridden(java.lang.String property)booleanpasses(PropertySet target)Returns whether the provided value passes the condition.<T> PropertyConditionrequiredProperty(Property<?> property, T value, ComparisonOperator op)Adds a required property sub-condition.PropertyConditionrequiredProperty(java.lang.String property, java.lang.Object value, ComparisonOperator op)Deprecated.as the string name was expected to be an alarm property.voidsetPassOnAny(boolean value)Sets whether the "defined" and "overridden" condition should pass on any match (true), or require all matches (false).
 
- 
- 
- 
Method Detail- 
getAndConditionspublic java.util.List<PropertyCondition.SubPropertyCondition> getAndConditions() 
 - 
getDefinedpublic java.util.Set<Property<?>> getDefined() 
 - 
getNotDefinedpublic java.util.Set<Property<?>> getNotDefined() 
 - 
getOverriddenpublic java.util.Set<Property<?>> getOverridden() 
 - 
passespublic boolean passes(PropertySet target) Description copied from interface:ConditionReturns whether the provided value passes the condition.- Specified by:
- passesin interface- Condition<PropertySet>
 
 - 
requiredProperty@Deprecated public PropertyCondition requiredProperty(java.lang.String property, java.lang.Object value, ComparisonOperator op) Deprecated.as the string name was expected to be an alarm property. This class is now used more generally, so the Property based version should be used.Adds a required property sub-condition. All required sub-conditions must pass for the overall condition to pass.
 - 
requiredPropertypublic <T> PropertyCondition requiredProperty(Property<?> property, T value, ComparisonOperator op) Adds a required property sub-condition. All required sub-conditions must pass for the overall condition to pass.
 - 
optionalProperty@Deprecated public PropertyCondition optionalProperty(java.lang.String property, java.lang.Object value, ComparisonOperator op) Deprecated.as the string name was expected to be an alarm property. This class is now used more generally, so * the Property based version should be used.Adds an optional property sub-condition. One optional sub-condition must pass for the whole condition to pass.
 - 
optionalPropertypublic <T> PropertyCondition optionalProperty(Property<T> property, T value, ComparisonOperator op) Adds an optional property sub-condition. One optional sub-condition must pass for the whole condition to pass.
 - 
getAlarmPropertyprotected Property<?> getAlarmProperty(java.lang.String propName) 
 - 
definedpublic PropertyCondition defined(Property<?> property) Adds a requirement that a property be defined. All of these conditions must pass for the overall condition to pass.
 - 
definedpublic PropertyCondition defined(java.lang.String property) 
 - 
notDefinedpublic PropertyCondition notDefined(Property<?> property) 
 - 
notDefinedpublic PropertyCondition notDefined(java.lang.String property) 
 - 
setPassOnAnypublic void setPassOnAny(boolean value) Sets whether the "defined" and "overridden" condition should pass on any match (true), or require all matches (false).
 - 
overriddenpublic PropertyCondition overridden(Property<?> property) 
 - 
overriddenpublic PropertyCondition overridden(java.lang.String property) 
 - 
equalspublic boolean equals(java.lang.Object o) - Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 
- 
 
-