olg.csv.bean.impl
Class RowProcessor<B>
java.lang.Object
olg.csv.bean.impl.RowProcessor<B>
- Type Parameters:
B
- dedicated bean the processor used.
- All Implemented Interfaces:
- IRowProcessor<B>
public final class RowProcessor<B>
- extends Object
- implements IRowProcessor<B>
IRowProcessor implementation.
- Author:
- Olivier Godineau
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RowProcessor
public RowProcessor(List<CellProcessor<B>> fieldFormatters)
- Parameters:
fieldFormatters
- the list of columnFormatter. Each of them converts a string
into a property of the bean this processor must return.
transform
public Row transform(B element)
- Returns a new Row from a bean.
- Specified by:
transform
in interface IRowProcessor<B>
- Parameters:
element
- the bean.
- Returns:
- a new row.
getHeaders
public Row getHeaders()
- Returns an headers row.
- Specified by:
getHeaders
in interface IRowProcessor<B>
- Returns:
- headers
Copyright © 2014. All rights reserved.