Class Condition
java.lang.Object
com.aquima.interactions.rule.parser.Expression
com.aquima.interactions.rule.parser.Condition
- All Implemented Interfaces:
ICondition
,IExpression
,Serializable
Simple class wrapping an expression that always results in a boolean value.
- Since:
- 5.0
- Author:
- O. Kerpershoek
- See Also:
-
Field Summary
Fields inherited from interface com.aquima.interactions.rule.ICondition
FALSE, TRUE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionevaluateConditionWith
(InferenceContext context, BooleanValue unknownValue) Evaluate method that will ensure the result is a boolean value, and use the default value passed if the expression did not yield any result.toString()
Methods inherited from class com.aquima.interactions.rule.parser.Expression
equals, evaluateWith, getDataType, getExpression, getExpressionObj, getResultTypeName, getScopeObjects, hashCode, isMultivalue
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.aquima.interactions.rule.IExpression
evaluateWith, getDataType, getExpression, getScopeObjects, isMultivalue
-
Constructor Details
-
Condition
-
-
Method Details
-
evaluateConditionWith
Description copied from interface:ICondition
Evaluate method that will ensure the result is a boolean value, and use the default value passed if the expression did not yield any result.- Specified by:
evaluateConditionWith
in interfaceICondition
- Parameters:
context
- The context that should be used to evaluate the expression with.unknownValue
- The default value that should be returned when the expression does not yield a result.- Returns:
- Boolean value containing the result of the expression evaluation, or the default value.
-
toString
- Overrides:
toString
in classExpression
-