Class AnnotationUtil


  • public final class AnnotationUtil
    extends java.lang.Object
    Created by hakan on 2.05.2020
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> void validateMandatoryNameColumns​(PoijiOptions options, Formatting formatting, java.lang.Class<T> modelType, java.util.Map<java.lang.String,​java.lang.Integer> titleToIndex, java.util.Map<java.lang.Integer,​java.lang.String> indexToTitle)
      Validate that all headers specified via @ExcelCellName annotations are present in the list of header names.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • validateMandatoryNameColumns

        public static <T> void validateMandatoryNameColumns​(PoijiOptions options,
                                                            Formatting formatting,
                                                            java.lang.Class<T> modelType,
                                                            java.util.Map<java.lang.String,​java.lang.Integer> titleToIndex,
                                                            java.util.Map<java.lang.Integer,​java.lang.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 - poijoption
        formatting - formatting
        modelType - class model
        titleToIndex - tiletoindex
        indexToTitle - indextoTitle
        Throws:
        HeaderMissingException - if one or more headers are missing