public class FieldBasedRowFormatter extends RowFormatter
RowFormatter that uses
the fields of an object as columns of the table
see Table for details| Modifier 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()
RowFormatterheader in class RowFormatterpublic java.util.List<java.lang.String> formatRow(java.lang.Object object)
RowFormatterformatRow in class RowFormatterpublic java.util.List<java.util.List<java.lang.String>> postProcess(java.util.List<java.util.List<java.lang.String>> list)
RowFormatterpostProcess in class RowFormatterlist - the table that has been generated by calls to the RowFormatter.header() and the RowFormatter.formatRow(Object) methods