Class ExpressionValidator
java.lang.Object
com.aquima.interactions.rule.graph.ValidationRuleBase
com.aquima.interactions.rule.graph.ExpressionValidator
- All Implemented Interfaces:
IBusinessRule
,IValidationRule
,Serializable
Validation rule implementation that uses an expression to check if a value (or combination of values) is valid.
- Since:
- 7.1
- Author:
- O. Kerpershoek
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ExpressionValidator
(IValidationDS datasource, IExpressionParser parser) -
Method Summary
Modifier and TypeMethodDescriptionboolean
validateWith
(InferenceContext context) This method performs the actual validation, and returns a boolean indicating if the validation has succeeded.Methods inherited from class com.aquima.interactions.rule.graph.ValidationRuleBase
getAttributeReference, getMessage, getName, getPriority, getRuleGroupNames, getSourceScopeObjects, getTargetAttributes, isWarning
-
Constructor Details
-
ExpressionValidator
protected ExpressionValidator(IValidationDS datasource, IExpressionParser parser) throws InitializationException - Throws:
InitializationException
-
-
Method Details
-
validateWith
Description copied from interface:IValidationRule
This method performs the actual validation, and returns a boolean indicating if the validation has succeeded. A return value of false means the object validated is not valid, where as a return value of true means that the object has passed the validation. This method is invoked after (all) the values have been updated in the profile.- Parameters:
context
- InferenceContext- Returns:
- boolean indicating if the validation was successful
- Throws:
AppException
- This exception is thrown when the validation could not be performed.
-