You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
1.5 KiB

package com.alibaba.excel.context;
7 years ago
import com.alibaba.excel.analysis.ExcelExecutor;
import com.alibaba.excel.read.metadata.ReadSheet;
import com.alibaba.excel.read.metadata.holder.ReadHolder;
import com.alibaba.excel.read.metadata.holder.ReadRowHolder;
import com.alibaba.excel.read.metadata.holder.ReadSheetHolder;
import com.alibaba.excel.read.metadata.holder.ReadWorkbookHolder;
7 years ago
/**
*
* A context is the main anchorage point of a excel reader.
*
7 years ago
* @author jipengfei
*/
public interface AnalysisContext {
/**
* Select the current table
*
* @param excelExecutor
* @param readSheet
7 years ago
*/
void currentSheet(ExcelExecutor excelExecutor, ReadSheet readSheet);
7 years ago
/**
* All information about the workbook you are currently working on
7 years ago
*
* @return
7 years ago
*/
ReadWorkbookHolder readWorkbookHolder();
7 years ago
/**
* All information about the sheet you are currently working on
*
* @return
7 years ago
*/
ReadSheetHolder readSheetHolder();
/**
* Set row of currently operated cell
*
* @param readRowHolder
*/
void readRowHolder(ReadRowHolder readRowHolder);
7 years ago
/**
* Row of currently operated cell
7 years ago
*
* @return
7 years ago
*/
ReadRowHolder readRowHolder();
/**
* The current read operation corresponds to the 'readSheetHolder' or 'readWorkbookHolder'
*
* @return
*/
ReadHolder currentReadHolder();
/**
* Custom attribute
*/
Object getCustom();
7 years ago
}