Class AlarmEventParseContext
java.lang.Object
com.inductiveautomation.factorypmi.application.components.alarm.AlarmEventParseContext
- All Implemented Interfaces:
ExpressionParseContext
Provides the context for parsing expressions that reference alarm properties. Resolves property
names to
AlarmEventPropertyExpression objects.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceProvider for the current alarm event during expression evaluation. -
Constructor Summary
ConstructorsConstructorDescriptionAlarmEventParseContext(FunctionFactory funcFactory, AlarmEventParseContext.SelectedAlarmEventModel model) -
Method Summary
Modifier and TypeMethodDescriptioncreateBoundExpression(String path) Called to create expressions to represent bound elements, like:Returns the function factory to be used for looking up functions during parsing.
-
Constructor Details
-
AlarmEventParseContext
public AlarmEventParseContext(FunctionFactory funcFactory, AlarmEventParseContext.SelectedAlarmEventModel model)
-
-
Method Details
-
createBoundExpression
Description copied from interface:ExpressionParseContextCalled to create expressions to represent bound elements, like:{ path.to.something }- Specified by:
createBoundExpressionin interfaceExpressionParseContext- Parameters:
path- the text content inside the braces.- Returns:
- the created
Expression - Throws:
RuntimeException- if the expression cannot be created (e.g., invalid path)
-
getFunctionFactory
Description copied from interface:ExpressionParseContextReturns the function factory to be used for looking up functions during parsing.- Specified by:
getFunctionFactoryin interfaceExpressionParseContext- Returns:
- the
FunctionFactory
-