@Retention(value=RUNTIME) @Target(value=FIELD) public @interface ExcelColumnIndex
dataType(),
defaultValue()| Modifier and Type | Required Element and Description |
|---|---|
String |
columnIndex
Zero based column index can be used to pull cell data in the annotated
field.
For instance : Any field annotated with columnIndex("2"), that field will be initialized with the value contained in column number 2 starting from 0. |
| Modifier and Type | Optional Element and Description |
|---|---|
String |
dataType
Specify the cell data type, if dataType is provided the extracted cell
value is parsed and converted into specified dataType.
|
String |
defaultValue
Specifies the default value, if data is not found in the cell ( either
blank or null ), then it will put the default value
Default values will also be casted in their dataType |
String |
expectedColumnName
Specifies the expected column name at that particular index.
Helpful in validating excel column index against expected columns. |
public abstract String columnIndex
public abstract String dataType
public abstract String defaultValue
public abstract String expectedColumnName
Copyright © 2019 Gizbel Technologies Private Limited. All rights reserved.