Class StringValidatorCall
java.lang.Object
com.aquima.interactions.framework.validator.ValidatorCallBase
com.aquima.interactions.framework.validator.StringValidatorCall
- All Implemented Interfaces:
IValidatorCall
,Serializable
This validator class for string values can check if a string is within the specified bounds.
- Since:
- 5.0
- Author:
- O. Kerpershoek
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStringValidatorCall
(String name, IParameters parameters) Constructs the validator using a data-source. -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the maximum length a string that is validated should have.This method returns the minimum length a string that is validated should have.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
-
StringValidatorCall
Constructs the validator using a data-source.- Parameters:
name
- The name of the validator type.parameters
- containing additional parameters for the validation.
-
-
Method Details
-
getMinimumLength
This method returns the minimum length a string that is validated should have. The minimum length is optional, so this method may return an unknown value to indicate there is no restriction to the minimum length.- Returns:
- the minimum length a string that is validated should have.
-
getMaximumLength
This method returns the maximum length a string that is validated should have. The maximum length is optional, so this method may return an unknown value to indicate there is no restriction to the maximum length.- Returns:
- the minimum length a string that is validated should have.
-
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.
-