public class HeaderColumnNameMappingStrategy<T> extends java.lang.Object implements MappingStrategy<T>
| Constructor and Description |
|---|
HeaderColumnNameMappingStrategy() |
| Modifier and Type | Method and Description |
|---|---|
void |
captureHeader(CSVReader reader)
Implementation of this method can grab the header line before parsing begins to use to map columns
to bean properties.
|
T |
createBean() |
java.beans.PropertyDescriptor |
findDescriptor(int col)
Implementation will have to return a property descriptor from a bean based on the current column.
|
java.lang.Class<T> |
getType() |
void |
setType(java.lang.Class<T> type) |
public void captureHeader(CSVReader reader) throws java.io.IOException
MappingStrategycaptureHeader in interface MappingStrategy<T>reader - the CSVReader to use for header parsingjava.io.IOException - if parsing failspublic java.beans.PropertyDescriptor findDescriptor(int col)
throws java.beans.IntrospectionException
MappingStrategyfindDescriptor in interface MappingStrategy<T>col - the column to find the description forjava.beans.IntrospectionExceptionpublic T createBean() throws java.lang.InstantiationException, java.lang.IllegalAccessException
createBean in interface MappingStrategy<T>java.lang.InstantiationExceptionjava.lang.IllegalAccessExceptionpublic java.lang.Class<T> getType()
public void setType(java.lang.Class<T> type)