- 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,StringExcelTableReader,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 and top header cell to specify the position of the table.String[][]Returns an array of header label strings.intReturns the number of header lines.Returns the excel sheet name theTableReaderand theTableWriteraccess.getStringValue(T cellData) Is used to get the header label string from the argument cell data.booleanObtains the boolean value which indicates whethervalidateHeaderDataignores additional header columns.ignoresAdditionalColumnsOfHeaderData(boolean value) Stores the boolean value which indicates whethervalidateHeaderDataignores additional header columns.booleanObtains whether header is top (normal table) or left.isVerticalAndHorizontalOpposite(boolean value) Decides whether header is top (normal table) or left.
-
Method Details
-
getSheetName
Returns the excel sheet name theTableReaderand theTableWriteraccess.- Returns:
- the sheet name of the excel file
-
getNumberOfHeaderLines
int getNumberOfHeaderLines()Returns the number of header lines.- Returns:
- the number of header lines
-
getFarLeftAndTopHeaderLabel
Returns the value of the far left and top header cell to specify the position of the table.The method is called when
tableStartRowNumberisnull.
SeeExcelTable.tableStartRowNumberWhen the table doesn't have a header and
tableStartRowNumberisnull, anexceptionis thrown.
So always set non-nulltableStartRowNumbervalue when the table doesn't have a header.- Returns:
- far left and top header label
"top" means the upper side of the header line when the table has multiple header lines.
-
getHeaderLabelData
Returns an array of header label strings.The data type of the return is
String[][]because table header can be multiple lines.- Returns:
- table header label strings
-
ignoresAdditionalColumnsOfHeaderData
Stores the boolean value which indicates whethervalidateHeaderDataignores additional header columns.- Parameters:
value- boolean
-
ignoresAdditionalColumnsOfHeaderData
boolean ignoresAdditionalColumnsOfHeaderData()Obtains the boolean value which indicates whethervalidateHeaderDataignores additional header columns.- Returns:
- boolean
-
getStringValue
@Nullable String getStringValue(@Nullable T cellData) throws jp.ecuacion.util.poi.excel.exception.ExcelAppException 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- Throws:
jp.ecuacion.util.poi.excel.exception.ExcelAppException- ExcelAppException
-
isVerticalAndHorizontalOpposite
Decides whether header is top (normal table) or left.truemeans headers are at the left.- Parameters:
value- boolean- Returns:
IfExcelTable<T>
-
isVerticalAndHorizontalOpposite
boolean isVerticalAndHorizontalOpposite()Obtains whether header is top (normal table) or left.truemeans headers are at the left.
-