- Type Parameters:
T- The data type obtained from the excel table. For example it would beStringif you wantStringdata from each cell in the table.
- All Known Subinterfaces:
IfDataTypeCellExcelTable,IfDataTypeCellExcelTableReader,IfDataTypeCellExcelTableWriter,IfDataTypeStringExcelTable,IfDataTypeStringExcelTableReader,IfExcelTableReader<T>,IfExcelTableWriter<T>,IfFormatFreeExcelTable<T>,IfFormatFreeExcelTableReader<T>,IfFormatOneLineHeaderExcelTable<T>,IfFormatOneLineHeaderExcelTableReader<T>
- All Known Implementing Classes:
CellFreeExcelTableReader,CellFreeExcelTableWriter,CellOneLineHeaderExcelTableReader,CellOneLineHeaderExcelTableWriter,ExcelTable,ExcelTableReader,ExcelTableWriter,StringFreeExcelTableReader,StringOneLineHeaderExcelTableReader,StringOneLineHeaderExcelTableToBeanReader
public interface IfExcelTable<T>
Provides the methods the extending interfaces use.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of the far left header cell to specify the position of the table.Returns the excel sheet name theTableReaderand theTableWriteraccess.getStringValue(T cellData) Is used to get the header label string from the argument cell data.voidvalidateHeader(List<List<String>> headerData) Validates the excel table header.
-
Method Details
-
getSheetName
Returns the excel sheet name theTableReaderand theTableWriteraccess.- Returns:
- the sheet name of the excel file
-
getFarLeftHeaderLabel
Returns the value of the far left header cell to specify the position of the table.The method is called when
tableStartRowNumberisnull.
SeeExcelTable.tableStartRowNumberWhen the table doesn't have a header, an
exceptionis thrown iftableStartRowNumberisnull.
So always set non-nulltableStartRowNumbervalue when the table doesn't have a header.- Returns:
- far left header label
-
validateHeader
void validateHeader(@RequireNonnull List<List<String>> headerData) throws jp.ecuacion.lib.core.exception.checked.BizLogicAppException Validates the excel table header.If the table doesn't have a header, nothing needs to be done in this method.
- Parameters:
headerData- string header data- Throws:
jp.ecuacion.lib.core.exception.checked.BizLogicAppException- BizLogicAppException
-
getStringValue
Is used to get the header label string from the argument cell data.- Parameters:
cellData- data obtained from the cell- Returns:
Stringvalue obtained from thecellData
-