Interface IfFormatOneLineHeaderExcelTable<T>

Type Parameters:
T - See IfExcelTable.
All Superinterfaces:
IfExcelTable<T>
All Known Subinterfaces:
IfFormatOneLineHeaderExcelTableReader<T>
All Known Implementing Classes:
CellOneLineHeaderExcelTableReader, CellOneLineHeaderExcelTableWriter, StringOneLineHeaderExcelTableReader, StringOneLineHeaderExcelTableToBeanReader

public interface IfFormatOneLineHeaderExcelTable<T> extends IfExcelTable<T>
Is a reader interface which treats one line header format tables.
  • Method Details

    • getHeaderLabels

      @Nonnull String[] getHeaderLabels()
      Defines the header labels in the excel table.

      It can be like new String[] {"first name", "last name", "age"}.

    • validateHeader

      default void validateHeader(@Nullable List<List<String>> headerData) throws jp.ecuacion.lib.core.exception.checked.BizLogicAppException
      Description copied from interface: IfExcelTable
      Validates the excel table header.

      If the table doesn't have a header, nothing needs to be done in this method.

      Specified by:
      validateHeader in interface IfExcelTable<T>
      Parameters:
      headerData - string header data
      Throws:
      jp.ecuacion.lib.core.exception.checked.BizLogicAppException - BizLogicAppException
    • getFarLeftHeaderLabel

      @Nonnull default String getFarLeftHeaderLabel()
      Description copied from interface: IfExcelTable
      Returns the value of the far left header cell to specify the position of the table.

      The method is called when tableStartRowNumber is null.
      See ExcelTable.tableStartRowNumber

      When the table doesn't have a header, an exception is thrown if tableStartRowNumber is null.
      So always set non-null tableStartRowNumber value when the table doesn't have a header.

      Specified by:
      getFarLeftHeaderLabel in interface IfExcelTable<T>
      Returns:
      far left header label