Class PropertyCondition
java.lang.Object
com.inductiveautomation.ignition.common.alarming.query.conditions.PropertyCondition
- All Implemented Interfaces:
- Condition<PropertySet>,- Serializable
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:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic interfacestatic enumstatic classstatic classstatic classstatic enumstatic class
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidapplyVersion(Version version) Adds a requirement that a property be defined.booleanprotected Property<?>getAlarmProperty(String propName) inthashCode()notDefined(Property<?> property) notDefined(String property) optionalProperty(Property<T> property, T value, ComparisonOperator op) Adds an optional property sub-condition.optionalProperty(String property, Object value, ComparisonOperator op) Deprecated.as the string name was expected to be an alarm property.overridden(Property<?> property) overridden(String property) booleanpasses(PropertySet target) Returns whether the provided value passes the condition.requiredProperty(Property<?> property, T value, ComparisonOperator op) Adds a required property sub-condition.requiredProperty(String property, Object value, ComparisonOperator op) Deprecated.as the string name was expected to be an alarm property.Will override previous set GroupPropertyCondition if one is set.voidsetPassOnAny(boolean value) Sets whether the "defined" and "overridden" condition should pass on any match (true), or require all matches (false).
- 
Constructor Details- 
PropertyConditionpublic PropertyCondition()
 
- 
- 
Method Details- 
getGroupProperties
- 
passesDescription copied from interface:ConditionReturns whether the provided value passes the condition.- Specified by:
- passesin interface- Condition<PropertySet>
 
- 
requiredProperty@Deprecated public PropertyCondition requiredProperty(String property, 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.
- 
requiredPropertyAdds a required property sub-condition. All required sub-conditions must pass for the overall condition to pass.
- 
optionalProperty@Deprecated public PropertyCondition optionalProperty(String property, 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.
- 
optionalPropertyAdds an optional property sub-condition. One optional sub-condition must pass for the whole condition to pass.
- 
getAlarmProperty
- 
definedAdds a requirement that a property be defined. All of these conditions must pass for the overall condition to pass.
- 
defined
- 
notDefined
- 
notDefined
- 
setPassOnAnypublic void setPassOnAny(boolean value) Sets whether the "defined" and "overridden" condition should pass on any match (true), or require all matches (false).
- 
overridden
- 
overridden
- 
setGroupConditionWill override previous set GroupPropertyCondition if one is set. If multiple are required they can be combined into one group.
- 
applyVersion
- 
getVersion
- 
equals
- 
hashCodepublic int hashCode()
 
-