spreadsheet.mapper.w2o.validation.validator.sheet.SheetValidator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spreadsheet-mapper Show documentation
Show all versions of spreadsheet-mapper Show documentation
java mapping library between spreadsheet and object
The newest version!
package spreadsheet.mapper.w2o.validation.validator.sheet;
import spreadsheet.mapper.model.core.Sheet;
import spreadsheet.mapper.model.meta.SheetMeta;
/**
* sheet validator, after workbook validators, if workbook validators failure, sheet validators will skip.
*
* Created by hanwen on 2016/12/23.
*/
public interface SheetValidator {
/**
* the error message will be collected when validator failure if error message is not blank
*
* @return valid error message
*/
String getErrorMessage();
/**
* valid supplied sheet
*
* @param sheet {@link Sheet}
* @param sheetMeta {@link SheetMeta}
* @return true if pass
*/
boolean valid(Sheet sheet, SheetMeta sheetMeta);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy