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
MappingStrategy
captureHeader
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
MappingStrategy
findDescriptor
in interface MappingStrategy<T>
col
- the column to find the description forjava.beans.IntrospectionException
public T createBean() throws java.lang.InstantiationException, java.lang.IllegalAccessException
createBean
in interface MappingStrategy<T>
java.lang.InstantiationException
java.lang.IllegalAccessException
public java.lang.Class<T> getType()
public void setType(java.lang.Class<T> type)