Interface ValidationFunction


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

      • 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