public class FieldBasedRowFormatter extends RowFormatter
RowFormatter
that uses the fields of an
object as columns of the tableModifier and Type | Class and Description |
---|---|
static class |
FieldBasedRowFormatter.Factory
Factory for creating instances of
FieldBasedRowFormatter |
Constructor and Description |
---|
FieldBasedRowFormatter(java.lang.Class<?> type,
java.lang.String parameterName,
Table tableAnnotation,
java.lang.annotation.Annotation[] annotations) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
formatRow(java.lang.Object object)
Generates a single row of the data table for the given object.
|
java.util.List<java.lang.String> |
header()
Generates the header row of the data table
|
java.util.List<java.util.List<java.lang.String>> |
postProcess(java.util.List<java.util.List<java.lang.String>> list)
Allows for post processing the resulting data table.
|
public FieldBasedRowFormatter(java.lang.Class<?> type, java.lang.String parameterName, Table tableAnnotation, java.lang.annotation.Annotation[] annotations)
public java.util.List<java.lang.String> header()
RowFormatter
header
in class RowFormatter
public java.util.List<java.lang.String> formatRow(java.lang.Object object)
RowFormatter
formatRow
in class RowFormatter
public java.util.List<java.util.List<java.lang.String>> postProcess(java.util.List<java.util.List<java.lang.String>> list)
RowFormatter
postProcess
in class RowFormatter
list
- the table that has been generated by calls to the RowFormatter.header()
and the RowFormatter.formatRow(Object)
methods