Class AlarmEventCollectionExpressionParseContext
- java.lang.Object
- 
- com.inductiveautomation.ignition.gateway.expressions.AbstractMultiLevelExpressionParseContext
- 
- com.inductiveautomation.ignition.gateway.expressions.AlarmEventCollectionExpressionParseContext
 
 
- 
- All Implemented Interfaces:
- ExpressionParseContext
 
 public class AlarmEventCollectionExpressionParseContext extends AbstractMultiLevelExpressionParseContext This parse context is built to work with a collection of events. It works much like thePropertyBasedExpressionParseContext, except that allows indexing into the collection, and supports additional collection-related properties, such as "Count", "MinPriority", etc.
 Examples:
 {MaxPriority}
 {Priority}
- 
- 
Constructor SummaryConstructors Constructor Description AlarmEventCollectionExpressionParseContext(PropertyResolver propResolver, java.util.List<AlarmEvent> alarmEvents)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringexpandCollectionReferences(java.lang.String expression)We want our message syntax to support building a "loop" message.protected ExpressiontryCreateBoundExpression(java.lang.String path)This function should create the expression if possible.- 
Methods inherited from class com.inductiveautomation.ignition.gateway.expressions.AbstractMultiLevelExpressionParseContextcreateBoundExpression, getBaseFunctionFactory, getDelegateParseContext, getFunctionFactory
 
- 
 
- 
- 
- 
Constructor Detail- 
AlarmEventCollectionExpressionParseContextpublic AlarmEventCollectionExpressionParseContext(PropertyResolver propResolver, java.util.List<AlarmEvent> alarmEvents) 
 
- 
 - 
Method Detail- 
tryCreateBoundExpressionprotected Expression tryCreateBoundExpression(java.lang.String path) Description copied from class:AbstractMultiLevelExpressionParseContextThis function should create the expression if possible. If not, it should return null instead of throwing the error, in which case the parent parse context will be tried.- Specified by:
- tryCreateBoundExpressionin class- AbstractMultiLevelExpressionParseContext
 
 - 
expandCollectionReferencespublic java.lang.String expandCollectionReferences(java.lang.String expression) throws java.lang.ExceptionWe want our message syntax to support building a "loop" message. Since that not part of the parser, and we happen to know how many events there will be here, so we create an expanded, parsable message here.- Throws:
- java.lang.Exception
 
 
- 
 
-