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.

86 lines
1.7 KiB

package com.alibaba.excel.context;
7 years ago
import com.alibaba.excel.event.EachRowAnalysisFinishEvent;
import com.alibaba.excel.metadata.holder.ReadConfiguration;
import com.alibaba.excel.metadata.holder.SheetHolder;
import com.alibaba.excel.metadata.holder.WorkbookHolder;
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 sheet
7 years ago
*/
void currentSheet(com.alibaba.excel.metadata.Sheet sheet);
7 years ago
/**
* All information about the workbook you are currently working on
7 years ago
*
* @return
7 years ago
*/
WorkbookHolder currentWorkbookHolder();
7 years ago
/**
* All information about the sheet you are currently working on
*
* @return
7 years ago
*/
SheetHolder currentSheetHolder();
7 years ago
/**
* Configuration of currently operated cell
7 years ago
*
* @return
7 years ago
*/
ReadConfiguration currentConfiguration();
7 years ago
/**
* set current result
*
* @param result
7 years ago
*/
void setCurrentRowAnalysisResult(Object result);
7 years ago
/**
* get current result
*
* @return get current result
7 years ago
*/
Object currentRowAnalysisResult();
7 years ago
/**
* get current row
*
* @return
7 years ago
*/
Integer currentRowNum();
7 years ago
/**
* set current row num
*
* @param row
7 years ago
*/
void setCurrentRowNum(Integer row);
/**
* get total row , Data may be inaccurate
*
* @return
7 years ago
*/
@Deprecated
7 years ago
Integer getTotalCount();
/**
* get total row ,Data may be inaccurate
7 years ago
*
* @param totalCount
7 years ago
*/
void setTotalCount(Integer totalCount);
}