java.lang.Object
org.csveed.bean.AbstractMapper<T>
- Type Parameters:
T
- the generic type
- Direct Known Subclasses:
ColumnIndexMapper
,ColumnNameMapper
The Class AbstractMapper.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
Check key.convert
(T bean, Row row, int lineNumber, DynamicColumn currentDynamicColumn) Convert.abstract BeanProperty
getBeanProperty
(Column currentColumn) Gets the bean property.protected abstract Column
Gets the column.keys()
Keys.void
setBeanInstructions
(BeanInstructions beanInstructions) Sets the bean instructions.void
verifyHeader
(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
-
checkKey
-
verifyHeader
-
getColumn
-
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
-