Style Intelligence v12.0

inetsoft.report.io
Class ReportFormatter

java.lang.Object
  extended by inetsoft.report.io.BaseFormatter
      extended by inetsoft.report.io.TemplateFormatter
          extended by inetsoft.report.io.ReportFormatter
All Implemented Interfaces:
Formatter

public class ReportFormatter
extends TemplateFormatter

Converting a report to report XML representation.


Field Summary
 
Fields inherited from class inetsoft.report.io.TemplateFormatter
embedData, keepScript, output, writer
 
Fields inherited from class inetsoft.report.io.BaseFormatter
docInfo, report
 
Constructor Summary
ReportFormatter(OutputStream output)
          Create a template formatter.
 
Method Summary
protected  String getType(ReportSheet sheet)
          Get the type name of a ReportSheet.
protected  void prepare(ReportSheet sheet)
          Prepare the report for exporting to xml.
 void write(BeanElement elem)
          Write the bean element.
 void write(ChartElement elem)
          Write the chart element.
 void write(CompositeElement elem)
          Write the composite element.
 void write(FormElement elem)
          Write the form element.
 void write(PainterElement elem)
          Write the painter element.
 void write(SectionElement elem)
          Write the section element.
protected  void write(SubreportElement subreport)
          Write a subreport.
 void write(TableElement elem)
          Write the table element.
protected  void write(TableLens table, TableElement elem)
          Write a table data.
 void write(TOCElement elem)
          Write the TOC element.
protected  void writeSection(inetsoft.report.internal.SectionElementDef elem)
          Write the section specifications.
 
Methods inherited from class inetsoft.report.io.TemplateFormatter
end, endCell, endGrid, endHeader, endRow, isKeepScript, localize, prolog, setKeepScript, startCell, startGrid, startHeader, startHeader, startRow, toString, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, writeBeanPropertyDefinition, writeBindingAttr, writeContents, writeContents, writeElementAttributes, writeElementProperties, writeHiddenFields, writeHyperlink, writePageAreas, writePainterAttributes, writePropertyValue, writeSection, writeSectionBand, writeSectionBands, writeShapes, writeTabAttributes
 
Methods inherited from class inetsoft.report.io.BaseFormatter
addProgressListener, escape, fireProgressEvent, init, removeProgressListener, setDocumentInfo, writeContents, writeElementContents, writeWarnings, writeWarnings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportFormatter

public ReportFormatter(OutputStream output)
Create a template formatter.

Method Detail

prepare

protected void prepare(ReportSheet sheet)
Prepare the report for exporting to xml.

Overrides:
prepare in class TemplateFormatter

write

public void write(TableElement elem)
Write the table element.

Specified by:
write in interface Formatter
Overrides:
write in class TemplateFormatter

write

public void write(FormElement elem)
Write the form element.

Specified by:
write in interface Formatter
Overrides:
write in class TemplateFormatter

write

public void write(PainterElement elem)
Write the painter element.

Specified by:
write in interface Formatter
Overrides:
write in class TemplateFormatter

write

public void write(ChartElement elem)
Write the chart element.

Specified by:
write in interface Formatter
Overrides:
write in class TemplateFormatter

write

public void write(TOCElement elem)
           throws IOException
Write the TOC element.

Specified by:
write in interface Formatter
Overrides:
write in class TemplateFormatter
Throws:
IOException

write

public void write(CompositeElement elem)
           throws IOException
Write the composite element.

Specified by:
write in interface Formatter
Overrides:
write in class TemplateFormatter
Throws:
IOException

write

public void write(BeanElement elem)
           throws IOException
Write the bean element.

Specified by:
write in interface Formatter
Overrides:
write in class TemplateFormatter
Throws:
IOException

write

public void write(SectionElement elem)
           throws IOException
Write the section element.

Specified by:
write in interface Formatter
Overrides:
write in class TemplateFormatter
Throws:
IOException

write

protected void write(TableLens table,
                     TableElement elem)
Write a table data.


getType

protected String getType(ReportSheet sheet)
Get the type name of a ReportSheet.

Overrides:
getType in class TemplateFormatter

write

protected void write(SubreportElement subreport)
              throws IOException
Write a subreport.

Overrides:
write in class TemplateFormatter
Throws:
IOException

writeSection

protected void writeSection(inetsoft.report.internal.SectionElementDef elem)
                     throws IOException
Write the section specifications.

Overrides:
writeSection in class BaseFormatter
Throws:
IOException

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.