Class JexlChecker
java.lang.Object
net.simplace.core.jexl.builder.JexlChecker
Check functions for JEXL rules (namespace
check:).- Author:
- aenders
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BooleanAborts the simulation if the condition is true; used in JEXL likecheck:abort(condition).static BooleanAborts the simulation with a message if the condition is true; used in JEXL likecheck:abort(condition, 'message').static BooleanUsed in JEXL likecheck:isEmpty(a).static BooleanUsed in JEXL likecheck:isNull(a).
-
Constructor Details
-
JexlChecker
public JexlChecker()
-
-
Method Details
-
isNull
-
isEmpty
Used in JEXL likecheck:isEmpty(a).- Parameters:
a- the value- Returns:
trueifais empty, seeStringHelper.isEmpty(Object)
-
abort
Aborts the simulation if the condition is true; used in JEXL likecheck:abort(condition).- Parameters:
a- the abort condition- Returns:
false(the condition) if the simulation is not aborted- Throws:
AbortSimulationException- ifaistrue
-
abort
Aborts the simulation with a message if the condition is true; used in JEXL likecheck:abort(condition, 'message').- Parameters:
a- the abort conditionaMessage- the reason, part of the exception message- Returns:
false(the condition) if the simulation is not aborted- Throws:
AbortSimulationException- ifaistrue
-