public class HeaderColumnNameMappingStrategy extends Object implements MappingStrategy
Constructor and Description |
---|
HeaderColumnNameMappingStrategy() |
Modifier and Type | Method and Description |
---|---|
void |
captureHeader(CSVReader reader)
Implemention of this method can grab the header line before parsing begins to use to map columns
to bean properties.
|
Object |
createBean() |
PropertyDescriptor |
findDescriptor(int col)
Implementation will have to return a property descriptor from a bean based on the current column.
|
Class |
getType() |
void |
setType(Class type) |
public void captureHeader(CSVReader reader) throws IOException
MappingStrategy
captureHeader
in interface MappingStrategy
IOException
public PropertyDescriptor findDescriptor(int col) throws IntrospectionException
MappingStrategy
findDescriptor
in interface MappingStrategy
IntrospectionException
public Object createBean() throws InstantiationException, IllegalAccessException
createBean
in interface MappingStrategy
InstantiationException
IllegalAccessException
public Class getType()
public void setType(Class type)
jHepWork 3.8 ©