forked from github/easyexcel
zhuangjiaju
5 years ago
51 changed files with 351 additions and 154 deletions
@ -0,0 +1,36 @@
|
||||
package com.alibaba.excel.converters; |
||||
|
||||
import com.alibaba.excel.enums.CellDataTypeEnum; |
||||
import com.alibaba.excel.metadata.CellData; |
||||
import com.alibaba.excel.metadata.GlobalConfiguration; |
||||
import com.alibaba.excel.metadata.property.ExcelContentProperty; |
||||
|
||||
/** |
||||
* An empty converter.It's automatically converted by type. |
||||
* |
||||
* @author zhuangjiaju |
||||
*/ |
||||
public class AutoConverter implements Converter { |
||||
|
||||
@Override |
||||
public Class supportJavaTypeKey() { |
||||
return null; |
||||
} |
||||
|
||||
@Override |
||||
public CellDataTypeEnum supportExcelTypeKey() { |
||||
return null; |
||||
} |
||||
|
||||
@Override |
||||
public Object convertToJavaData(CellData cellData, ExcelContentProperty contentProperty, |
||||
GlobalConfiguration globalConfiguration) { |
||||
return null; |
||||
} |
||||
|
||||
@Override |
||||
public CellData convertToExcelData(Object value, ExcelContentProperty contentProperty, |
||||
GlobalConfiguration globalConfiguration) { |
||||
return null; |
||||
} |
||||
} |
@ -0,0 +1,36 @@
|
||||
package com.alibaba.excel.metadata; |
||||
|
||||
import java.util.Map; |
||||
|
||||
import com.alibaba.excel.converters.Converter; |
||||
|
||||
/** |
||||
* |
||||
* Get the corresponding holder |
||||
* |
||||
* @author zhuangjiaju |
||||
**/ |
||||
public interface ConfigurationHolder extends Holder { |
||||
|
||||
/** |
||||
* |
||||
* Record whether it's new or from cache |
||||
* |
||||
* @return |
||||
*/ |
||||
boolean isNew(); |
||||
|
||||
/** |
||||
* Some global variables |
||||
* |
||||
* @return |
||||
*/ |
||||
GlobalConfiguration globalConfiguration(); |
||||
|
||||
/** |
||||
* What converter does the currently operated cell need to execute |
||||
* |
||||
* @return |
||||
*/ |
||||
Map<String, Converter> converterMap(); |
||||
} |
@ -1,44 +1,20 @@
|
||||
package com.alibaba.excel.metadata; |
||||
|
||||
import java.util.Map; |
||||
|
||||
import com.alibaba.excel.converters.Converter; |
||||
import com.alibaba.excel.enums.HolderEnum; |
||||
|
||||
/** |
||||
* |
||||
* |
||||
* Get the corresponding holder |
||||
* |
||||
* |
||||
* @author zhuangjiaju |
||||
**/ |
||||
public interface Holder { |
||||
|
||||
/** |
||||
* What holder is the return |
||||
* |
||||
* |
||||
* @return |
||||
*/ |
||||
HolderEnum holderType(); |
||||
|
||||
/** |
||||
* |
||||
* Record whether it's new or from cache |
||||
* |
||||
* @return |
||||
*/ |
||||
boolean isNew(); |
||||
|
||||
/** |
||||
* Some global variables |
||||
* |
||||
* @return |
||||
*/ |
||||
GlobalConfiguration globalConfiguration(); |
||||
|
||||
/** |
||||
* What converter does the currently operated cell need to execute |
||||
* |
||||
* @return |
||||
*/ |
||||
Map<String, Converter> converterMap(); |
||||
} |
||||
|
@ -1,5 +1,16 @@
|
||||
package com.alibaba.excel.read.listener.event; |
||||
|
||||
/** |
||||
* |
||||
* Event |
||||
* |
||||
* @author jipengfei |
||||
*/ |
||||
public interface AnalysisFinishEvent { |
||||
/** |
||||
* Get result |
||||
* |
||||
* @return |
||||
*/ |
||||
Object getAnalysisResult(); |
||||
} |
||||
|
Loading…
Reference in new issue