jhplot.io.csv.bean
Interface MappingStrategy<T>
-
- All Known Implementing Classes:
- ColumnPositionMappingStrategy, HeaderColumnNameMappingStrategy, HeaderColumnNameTranslateMappingStrategy
public interface MappingStrategy<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description void
captureHeader(au.com.bytecode.opencsv.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.
-
-
-
Method Detail
-
findDescriptor
java.beans.PropertyDescriptor findDescriptor(int col) throws java.beans.IntrospectionException
Implementation will have to return a property descriptor from a bean based on the current column.- Parameters:
col
- the column to find the description for- Returns:
- the related PropertyDescriptor
- Throws:
java.beans.IntrospectionException
-
createBean
T createBean() throws java.lang.InstantiationException, java.lang.IllegalAccessException
- Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException
-
captureHeader
void captureHeader(au.com.bytecode.opencsv.CSVReader reader) throws java.io.IOException
Implementation of this method can grab the header line before parsing begins to use to map columns to bean properties.- Parameters:
reader
- the CSVReader to use for header parsing- Throws:
java.io.IOException
- if parsing fails
-
-
DMelt 3.0 © DataMelt by jWork.ORG