com.github.kunalk16.excel.file.validation.AbstractExcelFileValidator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lightExcelReader Show documentation
Show all versions of lightExcelReader Show documentation
A lightweight Java framework to read .xlsx excel files.
package com.github.kunalk16.excel.file.validation;
abstract class AbstractExcelFileValidator implements ExcelFileValidator {
private final ExcelFileValidator nextExcelFileValidator;
AbstractExcelFileValidator(ExcelFileValidator nextExcelFileValidator) {
this.nextExcelFileValidator = nextExcelFileValidator;
}
public boolean validate(String filePath) {
if (this.validateFile(filePath)) {
if (this.nextExcelFileValidator != null) {
return this.nextExcelFileValidator.validate(filePath);
}
return true;
}
return false;
}
protected abstract boolean validateFile(String filePath);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy