public class MetaDataOutputGenerator extends java.lang.Object implements TableOutputGenerator
RSTableModel from an report with only the
metaInformation set.| Constructor and Description |
|---|
MetaDataOutputGenerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
addField(java.lang.Object field,
Column.CellFormatter formatter)
Adds a new cell to the output.
|
void |
addGroupRow(int[] subtotalIndices,
java.lang.Object[] subtotals,
int[] subtotalGroupFieldIndices,
java.lang.Object[] subtotalGroupFieldValues,
int rowSize,
Column.CellFormatter[] cellFormatters)
In case a report is exported using subtotals, this method is called whenever
a group is finished and an aggregation row needs to be added.
|
void |
close()
Informs the generator that the data is completely processed.
|
CompiledReport |
getFormatInfo()
Returns an empty
CompiledReport object to specify the type of report
that is generated by this generator. |
java.lang.String[] |
getFormats() |
CompiledReport |
getTableObject()
Is called upon completion to get the final report object.
|
void |
initialize(java.io.OutputStream os,
TableDefinition td,
boolean withSubtotals,
TableReport report,
TableReport orgReport,
Column.CellFormatter[] cellFormatters,
ParameterSet parameters,
User user,
ReportExecutionConfig... configs)
Initializes the generator before the first data point is provided.
|
boolean |
isCatchAll()
Returns true if this generator should be used if the format is not
recognized.
|
void |
nextRow()
Informs the generator that the current data row is finished and a new row is
about to begin
|
void |
preInitialize()
If something needs to be done before the
#initialize(OutputStream, TableDefinition, boolean, TableReport, TableReport, CellFormatter[], ParameterSet, User, ReportExecutionConfig...)
method is called, e.g. |
boolean |
supportsStreaming()
Return true if the output generator is able to stream data.
|
public java.lang.String[] getFormats()
getFormats in interface ReportOutputGeneratorpublic void preInitialize()
TableOutputGenerator#initialize(OutputStream, TableDefinition, boolean, TableReport, TableReport, CellFormatter[], ParameterSet, User, ReportExecutionConfig...)
method is called, e.g. something that has to be initialized before the
TableDefinition is created, it can be done here.preInitialize in interface TableOutputGeneratorpublic void initialize(java.io.OutputStream os,
TableDefinition td,
boolean withSubtotals,
TableReport report,
TableReport orgReport,
Column.CellFormatter[] cellFormatters,
ParameterSet parameters,
User user,
ReportExecutionConfig... configs)
TableOutputGeneratorinitialize in interface TableOutputGeneratoros - The output stream to be used. If no output stream is provided (the
object is null), then the report should be generated in memory.public void nextRow()
TableOutputGeneratornextRow in interface TableOutputGeneratorpublic void addField(java.lang.Object field,
Column.CellFormatter formatter)
TableOutputGeneratoraddField in interface TableOutputGeneratorpublic void close()
TableOutputGeneratorclose in interface TableOutputGeneratorpublic CompiledReport getTableObject()
TableOutputGenerator#initialize(OutputStream, TableDefinition, boolean, TableReport, TableReport, CellFormatter[], ParameterSet, User, ReportExecutionConfig...)
the CompiledReport object should not contain actual report data.getTableObject in interface TableOutputGeneratorpublic CompiledReport getFormatInfo()
ReportOutputGeneratorCompiledReport object to specify the type of report
that is generated by this generator.getFormatInfo in interface ReportOutputGeneratorpublic boolean isCatchAll()
ReportOutputGeneratorisCatchAll in interface ReportOutputGeneratorpublic void addGroupRow(int[] subtotalIndices,
java.lang.Object[] subtotals,
int[] subtotalGroupFieldIndices,
java.lang.Object[] subtotalGroupFieldValues,
int rowSize,
Column.CellFormatter[] cellFormatters)
TableOutputGeneratoraddGroupRow in interface TableOutputGeneratorpublic boolean supportsStreaming()
TableOutputGeneratorsupportsStreaming in interface TableOutputGenerator