olg.csv.bean.impl
Class RowProcessor<B>

java.lang.Object
  extended by 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

Constructor Summary
RowProcessor(List<CellProcessor<B>> fieldFormatters)
           
 
Method Summary
 Row getHeaders()
          Returns an headers row.
 Row transform(B element)
          Returns a new Row from a bean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.