package com.alibaba.excel.context; import com.alibaba.excel.metadata.Table; import com.alibaba.excel.metadata.holder.write.WriteConfiguration; import com.alibaba.excel.metadata.holder.write.SheetHolder; import com.alibaba.excel.metadata.holder.write.TableHolder; import com.alibaba.excel.metadata.holder.write.WorkbookHolder; /** * Write context * * @author jipengfei */ public interface WriteContext { /** * If the current sheet already exists, select it; if not, create it * * @param sheet */ void currentSheet(com.alibaba.excel.metadata.Sheet sheet); /** * If the current table already exists, select it; if not, create it * * @param table */ void currentTable(Table table); /** * Configuration of currently operated cell * * @return */ WriteConfiguration currentConfiguration(); /** * All information about the workbook you are currently working on * * @return */ WorkbookHolder currentWorkbookHolder(); /** * All information about the sheet you are currently working on * * @return */ SheetHolder currentSheetHolder(); /** * All information about the table you are currently working on * * @return */ TableHolder currentTableHolder(); /** * close */ void finish(); }