public class HeaderRow extends Row
| 限定符和类型 | 字段和说明 |
|---|---|
protected Class<?> |
clazz |
protected ListSheet.EntryColumn[] |
columns |
protected Map<String,Integer> |
mapping |
protected String[] |
names |
protected Object |
t |
| 限定符 | 构造器和说明 |
|---|---|
protected |
HeaderRow() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Map<String,Method> |
attachOtherColumn(Class<?> clazz)
Attach some others column
|
protected int |
check(String first,
String second) |
protected ListSheet.EntryColumn |
createColumn(AccessibleObject ao)
Create column from
ExcelColumn annotation
Override the method to extend custom comments |
protected void |
fieldPut(int i,
Row row,
Object t) |
String |
get(int columnIndex)
Get the column name by column index
|
CellType |
getCellType(int columnIndex)
Returns the type of cell
|
Class<?> |
getClazz() |
protected ListSheet.EntryColumn[] |
getColumns() |
int |
getIndex(String columnName)
Returns the position in cell range
|
protected <T> T |
getT() |
protected boolean |
ignoreColumn(AccessibleObject ao)
Ignore some columns, override this method to add custom filtering
|
protected void |
methodPut(int i,
Row row,
Object t) |
protected HeaderRow |
setClass(Class<?> clazz)
mapping
|
protected HeaderRow |
setClassOnce(Class<?> clazz)
mapping and instance
|
protected int |
simpleTestLength(String name) |
String |
toString() |
HeaderRow |
with(Row row) |
asHeader, geet, get, getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getCell, getCell, getCellType, getCellType, getChar, getChar, getChar, getDate, getDate, getDate, getDecimal, getDecimal, getDecimal, getDouble, getDouble, getDouble, getFirstColumnIndex, getFloat, getFloat, getFormula, getFormula, getInt, getInt, getInt, getLastColumnIndex, getLocalDate, getLocalDate, getLocalDate, getLocalDateTime, getLocalDateTime, getLocalDateTime, getLocalTime, getLocalTime, getLocalTime, getLong, getLong, getLong, getRowNum, getRowNumber, getShort, getShort, getShort, getString, getString, getString, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, hasFormula, hasFormula, isEmpty, rangeCheck, setHr, to, toCellIndex, tooprotected String[] names
protected Class<?> clazz
protected Object t
protected ListSheet.EntryColumn[] columns
protected HeaderRow setClass(Class<?> clazz)
clazz - the type of bindingprotected HeaderRow setClassOnce(Class<?> clazz) throws IllegalAccessException, InstantiationException
clazz - the type of bindingIllegalAccessException - -InstantiationException - -protected ListSheet.EntryColumn[] getColumns()
protected <T> T getT()
public Class<?> getClazz()
public CellType getCellType(int columnIndex)
RowgetCellType 在类中 RowcolumnIndex - the cell index from zeroCellTypepublic String get(int columnIndex)
columnIndex - the cell indexpublic int getIndex(String columnName)
columnName - the column nameprotected int simpleTestLength(String name)
protected void fieldPut(int i,
Row row,
Object t)
throws IllegalAccessException
protected void methodPut(int i,
Row row,
Object t)
throws IllegalAccessException,
InvocationTargetException
protected boolean ignoreColumn(AccessibleObject ao)
ao - Method or Fieldprotected Map<String,Method> attachOtherColumn(Class<?> clazz)
clazz - Target classprotected ListSheet.EntryColumn createColumn(AccessibleObject ao)
ExcelColumn annotation
Override the method to extend custom comments
ao - AccessibleObject witch defined the ExcelColumn annotationListSheet.EntryColumn informationCopyright © 2022. All rights reserved.