|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.informatica.report.ReportWriter
public abstract class ReportWriter
Controls the writing of a report.
Each time a report is printed, a new ReportWriter is created.
| Method Summary | |
|---|---|
abstract void |
close()
Closes the report destination file. |
abstract TablePrinter |
createTablePrinter(AbstractTableBlock table)
|
abstract void |
embedNativeObject(Object rendered)
Embeds in the document a rendered block. |
abstract void |
embedText(info.informatica.doc.dom4j.CSSStylableElement peer,
String text)
Embeds a text fragment, generally a paragraph. |
abstract void |
open(OutputStream out)
Opens the destination file. |
void |
print(Map<String,? extends Object> data)
Print the document. |
void |
print(ReportDataSource data)
Print the report. |
void |
printNested(Block nested,
Dataset ds)
Prints a nested block. |
Block |
wrapBlock(Block block)
Wrap generic blocks with document-specific ones. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void print(ReportDataSource data)
throws info.informatica.doc.RenderingException,
DatasetException
Remember to first open the output stream!
data - the ReportDataSource
info.informatica.doc.RenderingException - if a problem occurred when rendering the report.
DatasetException - if there was a problem using the data.
NullPointerException - if data source is null.
public void print(Map<String,? extends Object> data)
throws info.informatica.doc.RenderingException
Remember to first open the output stream!
data - the spec_id-variable map.
info.informatica.doc.RenderingException - if a problem occurred when rendering the report.
NullPointerException - if data is null.public Block wrapBlock(Block block)
The resulting native block must implement the same rendering interface as the generic block.
block - a generic block.
public void printNested(Block nested,
Dataset ds)
throws info.informatica.doc.RenderingException,
DatasetException
Dynamic blocks that allow nested blocks must call this method for each row.
info.informatica.doc.RenderingException
DatasetException
public abstract void open(OutputStream out)
throws info.informatica.doc.RenderingException
out - an OutputStream used to write the report document.
info.informatica.doc.RenderingException - in case of problem preparing for opening the report document.
IllegalStateException - if called twice.public abstract void close()
public abstract void embedNativeObject(Object rendered)
throws info.informatica.doc.RenderingException
rendered - a document-specific Object representation of the block. For
example, if it is a PDF block it must be a PDF element.
info.informatica.doc.RenderingException - if a problem occurred when embedding the object.
public abstract void embedText(info.informatica.doc.dom4j.CSSStylableElement peer,
String text)
throws info.informatica.doc.RenderingException
This method allows to reuse all the text blocks in non-text reports without having to write report-specific wrappers for each report type.
peer - the formatting peer that should be used to format the the
text.text - the text to embed into the document.
info.informatica.doc.RenderingException - if a problem occurred when embedding the text.public abstract TablePrinter createTablePrinter(AbstractTableBlock table)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||