Class EventScriptCondition
- java.lang.Object
-
- com.inductiveautomation.ignition.common.tags.search.conditions.EventScriptCondition
-
- All Implemented Interfaces:
Condition<TagEventScripts>
,java.io.Serializable
public class EventScriptCondition extends java.lang.Object implements Condition<TagEventScripts>
A Condition implementation with the smarts to be able to search tag event scripts in a tag. When using this condition, you should really use ComparisonOperator.Like to match to a string inside a tag event script.- Since:
- 8.0
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
EventScriptCondition.EventSubCondition
-
Constructor Summary
Constructors Constructor Description EventScriptCondition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
passes(TagEventScripts target)
Returns whether the provided value passes the condition.EventScriptCondition
requiredProperty(Property<?> property, java.lang.Object value, ComparisonOperator op)
Adds a required property sub-condition.
-
-
-
Method Detail
-
passes
public boolean passes(TagEventScripts target)
Description copied from interface:Condition
Returns whether the provided value passes the condition.- Specified by:
passes
in interfaceCondition<TagEventScripts>
-
requiredProperty
public EventScriptCondition 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.- Parameters:
property
- the Property that holds the value we are looking forvalue
- the value that we are looking forop
- the ComparisonOperator to use
-
-