Class DateValidatorCall

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

public class DateValidatorCall extends ValidatorCallBase
Validator that can be used to validate an attribute containing a date value.
Since:
5.0
Author:
O. Kerpershoek
See Also:
  • Constructor Details

    • DateValidatorCall

      public DateValidatorCall(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

    • getCompareDate

      public DateValue getCompareDate()
      This method returns the date value that should be used to compare the attribute value with.
      Returns:
      the date value that should be used to compare the attribute value with.
    • getOperator

      public String getOperator()
      This method returns the type of operator that should be used in the validation.
      Returns:
      the type of operator that should be used in the validation.
    • 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.