Interface ValidationFunction


public interface ValidationFunction
Function used for field validation in ValidationService.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    validate(@NotNull String fieldName, @NotNull String fieldValue, @NotNull ErrorCollection errorCollection)
    Validate a specified field.
  • Method Details

    • validate

      void validate(@NotNull @NotNull String fieldName, @NotNull @NotNull String fieldValue, @NotNull @NotNull ErrorCollection errorCollection)
      Validate a specified field.
      Parameters:
      fieldName - name of the field
      fieldValue - value of the field
      errorCollection - existing error collection, to which errors should be appended