java.lang.Object
org.csveed.bean.AbstractMapper<T>
- Type Parameters:
T- the generic type
- Direct Known Subclasses:
ColumnIndexMapper,ColumnNameMapper
The Class AbstractMapper.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidCheck key.convert(T bean, Row row, int lineNumber, DynamicColumn currentDynamicColumn) Convert.abstract BeanPropertygetBeanProperty(Column currentColumn) Gets the bean property.protected abstract ColumnGets the column.keys()Keys.voidsetBeanInstructions(BeanInstructions beanInstructions) Sets the bean instructions.voidverifyHeader(Header header) Verify header.
-
Field Details
-
beanInstructions
The bean instructions.
-
-
Constructor Details
-
AbstractMapper
public AbstractMapper()
-
-
Method Details
-
getBeanProperty
Gets the bean property.- Parameters:
currentColumn- the current column- Returns:
- the bean property
-
keys
Keys.- Returns:
- the sets the
-
checkKey
Check key.- Parameters:
header- the headerkey- the key
-
verifyHeader
Verify header.- Parameters:
header- the header
-
getColumn
Gets the column.- Parameters:
row- the row- Returns:
- the column
-
convert
Convert.- Parameters:
bean- the beanrow- the rowlineNumber- the line numbercurrentDynamicColumn- the current dynamic column- Returns:
- the t
-
setBeanInstructions
Sets the bean instructions.- Parameters:
beanInstructions- the new bean instructions
-