Class StringValidatorCall

java.lang.Object
com.aquima.interactions.framework.validator.ValidatorCallBase
com.aquima.interactions.framework.validator.StringValidatorCall
All Implemented Interfaces:
IValidatorCall, Serializable

public class StringValidatorCall extends ValidatorCallBase
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 Details

    • StringValidatorCall

      public StringValidatorCall(String name, IParameters parameters)
      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

      public IntegerValue 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

      public IntegerValue 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

      public boolean validate(IValue attrValue)
      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.