Package com.poiji.util
Class AnnotationUtil
java.lang.Object
com.poiji.util.AnnotationUtil
Created by hakan on 2.05.2020
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> void
validateMandatoryNameColumns
(PoijiOptions options, Formatting formatting, Class<T> modelType, Map<String, Integer> titleToIndex, Map<Integer, String> indexToTitle) Validate that all headers specified via @ExcelCellName annotations are present in the list of header names.
-
Method Details
-
validateMandatoryNameColumns
public static <T> void validateMandatoryNameColumns(PoijiOptions options, Formatting formatting, Class<T> modelType, Map<String, Integer> titleToIndex, Map<Integer, String> indexToTitle) Validate that all headers specified via @ExcelCellName annotations are present in the list of header names.Validation is only performed if it is set in the PoijiOptions
- Type Parameters:
T
- model Type- Parameters:
options
- poijoptionformatting
- formattingmodelType
- class modeltitleToIndex
- tiletoindexindexToTitle
- indextoTitle- Throws:
HeaderMissingException
- if one or more headers are missing
-