Interface IValidatorCall

All Superinterfaces:
Serializable
All Known Implementing Classes:
BankAccountValidatorCall, DateValidatorCall, NumberValidatorCall, RegexpValidatorCall, SofiNumberValidatorCall, StringValidatorCall, ValidatorCallAdapter, ValidatorCallBase

public interface IValidatorCall extends Serializable
This interface defines the methods needed for a value validator call.
Since:
7.4
Author:
Jon van Leuven
  • Method Summary

    Modifier and Type
    Method
    Description
    This method returns the type of the validator.
    boolean
    validate(IValue attrValue)
    This method will be invoked for each value that should be validated by this validator.
  • Method Details

    • getTypeName

      String getTypeName()
      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.
      Returns:
      The type name of the validator.
    • validate

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