public class BeanWrapper<T> extends AbstractWrapper<T>
headerNameMapper, shutdown| 构造器和说明 |
|---|
BeanWrapper() |
BeanWrapper(Class<T> type) |
BeanWrapper(Class<T> type,
Map<String,String> headerMapping) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Object |
changeType(Object value,
Class<?> paramType) |
T |
newInstance()
获取一个需要包装的实例
|
void |
setType(Class<T> type) |
void |
wrapper(T instance,
String header,
Object value)
包装一个属性到实例里,每读取一个单元格,会传入这个单元格的信息,进行属性填充
|
getHeaderNameMapper, headerMapper, isShutdown, setHeaderNameMapper, shutdown, wrapperDoneclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnewInstance, setuppublic T newInstance() throws Exception
ExcelReaderWrapperExceptionpublic void wrapper(T instance, String header, Object value)
ExcelReaderWrapperinstance - 当前实例(当前行对应的示例对象)header - 当前表头,当前列对应的表头value - 当前单元格的值Copyright © 2018. All rights reserved.