Interface ValidationDataFactory<T extends Validator,R>

All Known Implementing Classes:
DecimalDigitsValidationDataFactory, LengthValidationDataFactory, NumberRangeValidationDataFactory, PhoneTypeValidatorDataFactory, RegexValidationDataFactory, SimplePresenceValidationDataFactory

public interface ValidationDataFactory<T extends Validator,R>
Responsible to return validation meta data for a certain validator that can be sent to the client, so that the client is able to validate some data. For example, the returned data should contain the maximum length for strings if the validator is a length validator.
  • Method Summary

    Modifier and Type
    Method
    Description
    getData(T validator)
     
  • Method Details

    • getData

      R getData(T validator)