Class ValidatorCallAdapter

java.lang.Object
com.aquima.interactions.rule.validation.ValidatorCallAdapter
All Implemented Interfaces:
IValidatorCall, Serializable

public class ValidatorCallAdapter extends Object implements IValidatorCall
Adapter class to create a IValidatorCall for a IValidator
Since:
8.4
Author:
Jon van Leuven
See Also:
  • Constructor Details

  • Method Details

    • getTypeName

      public String getTypeName()
      Description copied from interface: IValidatorCall
      This method returns the type of the validator. The type name is used to link the validator definition, the actual validator, and the validation definition together.
      Specified by:
      getTypeName in interface IValidatorCall
      Returns:
      The type name of the validator.
    • 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.
      Specified by:
      validate in interface IValidatorCall
      Parameters:
      attrValue - The value that should be validated.
      Returns:
      Boolean indicating if the value is deemed valid by this validator.