Interface ExcelAttributeValidator<T extends ExcelAttribute>

    • Method Detail

      • canHandle

        boolean canHandle​(@Nonnull
                          T excelAttribute,
                          @Nonnull
                          ImportParameters importParameters)
        Indicates whether validator is able to validate given cell value.
        Parameters:
        excelAttribute -
        importParameters -
        Returns:
        boolean whether validator can validate the cell
      • validate

        ExcelValidationResult validate​(@Nonnull
                                       T excelAttribute,
                                       @Nonnull
                                       ImportParameters importParameters,
                                       @Nonnull
                                       java.util.Map<java.lang.String,​java.lang.Object> context)
        Validates given cell and returns validation result. If cell doesn't have validation issues then ExcelValidationResult.SUCCESS should be returned.
        Parameters:
        excelAttribute -
        importParameters -
        context - map which can be used as a cache. The map is shared between all request for given excel sheet.
        Returns: