|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectolg.csv.bean.impl.RowProcessor<B>
B - dedicated bean the processor used.public final class RowProcessor<B>
IRowProcessor implementation.
| Nested Class Summary | |
|---|---|
private class |
RowProcessor.ValueStrategy
Strategy to define a cell value. |
| Field Summary | |
|---|---|
private List<CellProcessor<B>> |
fieldFormatters
A rowProcessor has a list of columnFormatter. |
private RowProcessor.ValueStrategy |
headerStrategy
Strategy to show headers. |
private int |
nextRowNum
num of the next row to write. |
private RowProcessor.ValueStrategy |
valueStrategy
Strategy to show values. |
| 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. |
private Row |
transform(B element,
RowProcessor.ValueStrategy strategy)
Returns new Row from an element. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private int nextRowNum
private final RowProcessor.ValueStrategy valueStrategy
private final RowProcessor.ValueStrategy headerStrategy
private final List<CellProcessor<B>> fieldFormatters
| Constructor Detail |
|---|
public RowProcessor(List<CellProcessor<B>> fieldFormatters)
fieldFormatters - the list of columnFormatter. Each of them converts a string
into a property of the bean this processor must return.| Method Detail |
|---|
public Row transform(B element)
transform in interface IRowProcessor<B>element - the bean.
public Row getHeaders()
getHeaders in interface IRowProcessor<B>
private Row transform(B element,
RowProcessor.ValueStrategy strategy)
element - the element.strategy - the strategy to set the cell values.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||