Class NumberValidatorCall
java.lang.Object
com.aquima.interactions.framework.validator.ValidatorCallBase
com.aquima.interactions.framework.validator.NumberValidatorCall
- All Implemented Interfaces:
IValidatorCall
,Serializable
Validator that uses a number range to validate the value of an attribute.
- Since:
- 5.0
- Author:
- O. Kerpershoek
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNumberValidatorCall
(String name, IParameters parameters) Constructs the validator using a data-source. -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the range of values that are deemed valid.boolean
This method will be invoked for each value that should be validated by this validator.Methods inherited from class com.aquima.interactions.framework.validator.ValidatorCallBase
getCountry, getTypeName
-
Constructor Details
-
NumberValidatorCall
Constructs the validator using a data-source.- Parameters:
name
- The name of the validator type.parameters
- Containing additional parameters for the validation.
-
-
Method Details
-
getValidRange
This method returns the range of values that are deemed valid.- Returns:
- the range of values that are deemed valid.
-
validate
Description copied from interface:IValidatorCall
This method will be invoked for each value that should be validated by this validator.- Parameters:
attrValue
- The value that should be validated.- Returns:
- Boolean indicating if the value is deemed valid by this validator.
-