Package com.indeed.proctor.common
Class RuleVerifyUtils
- java.lang.Object
-
- com.indeed.proctor.common.RuleVerifyUtils
-
public class RuleVerifyUtils extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidverifyRule(java.lang.String testRule, boolean shouldEvaluate, javax.el.ExpressionFactory expressionFactory, javax.el.ELContext elContext, java.util.Set<java.lang.String> absentIdentifiers)verifies EL syntax is correct, whether all identifiers are present in context, and whether it will evaluate to boolean
-
-
-
Method Detail
-
verifyRule
public static void verifyRule(java.lang.String testRule, boolean shouldEvaluate, javax.el.ExpressionFactory expressionFactory, javax.el.ELContext elContext, java.util.Set<java.lang.String> absentIdentifiers) throws InvalidRuleExceptionverifies EL syntax is correct, whether all identifiers are present in context, and whether it will evaluate to boolean- Parameters:
shouldEvaluate- if false, only checks syntax is correct- Throws:
InvalidRuleException
-
-