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 voidcaptureHeader(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.TcreateBean()java.beans.PropertyDescriptorfindDescriptor(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.IntrospectionExceptionImplementation 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.InstantiationExceptionjava.lang.IllegalAccessException
-
captureHeader
void captureHeader(au.com.bytecode.opencsv.CSVReader reader) throws java.io.IOExceptionImplementation 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