Class ValueValidator
java.lang.Object
com.aquima.interactions.rule.graph.ValidationRuleBase
com.aquima.interactions.rule.graph.ValueValidator
- All Implemented Interfaces:
IBusinessRule
,IValidationRule
,Serializable
Validation rule implementation using a validator class.
- Since:
- 7.1
- Author:
- O. Kerpershoek
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ValueValidator
(IValidationDS datasource, IExpressionParser parser, IValidator validator, IParameters parameters) -
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
-
ValueValidator
protected ValueValidator(IValidationDS datasource, IExpressionParser parser, IValidator validator, IParameters parameters)
-
-
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
-