jdbreport.model.io.xml
Class ReportBookWriterParser

java.lang.Object
  extended by and.util.xml.AbstractXMLParser
      extended by jdbreport.model.io.xml.DefaultReportParser
          extended by jdbreport.model.io.xml.ReportBookWriterParser
All Implemented Interfaces:
and.util.xml.XMLParser
Direct Known Subclasses:
GridParser, ReportBookParser

public abstract class ReportBookWriterParser
extends DefaultReportParser

Version:
2.0 15.11.2010
Author:
Andrey Kholmanskih

Field Summary
protected  CellParser cellHandler
           
protected  int currentRow
           
protected static Units unit
           
 
Fields inherited from class jdbreport.model.io.xml.DefaultReportParser
CELL, ROW, SHEET, STYLE, STYLES
 
Constructor Summary
ReportBookWriterParser(DefaultReaderHandler reportHandler)
           
 
Method Summary
protected abstract  CellParser createCellHandler()
           
 void endElement(String name, StringBuffer value)
           
protected  CellParser getCellHandler()
           
protected abstract  String getSheetName()
           
protected  void saveSheet(PrintWriter writer, ReportModel model)
           
protected  void writeCell(PrintWriter writer, ReportModel model, Cell cell, int row, int col)
           
protected  void writeGroup(PrintWriter writer, Group group, ReportModel model)
           
protected  void writeGroupChild(PrintWriter writer, Group group, ReportModel model)
           
protected  void writeRow(PrintWriter writer, TableRow row, ReportModel model)
           
protected  void writeRows(PrintWriter writer, ReportModel model)
           
 void writeSheet(PrintWriter writer, ReportModel model)
           
 
Methods inherited from class jdbreport.model.io.xml.DefaultReportParser
getCurrentModel, getDefaultReportHandler, getReportBook, getReportModel, setCurrentModel, startElement
 
Methods inherited from class and.util.xml.AbstractXMLParser
characters, getHandler, popHandler, pushHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cellHandler

protected CellParser cellHandler

currentRow

protected int currentRow

unit

protected static Units unit
Constructor Detail

ReportBookWriterParser

public ReportBookWriterParser(DefaultReaderHandler reportHandler)
Method Detail

writeGroup

protected void writeGroup(PrintWriter writer,
                          Group group,
                          ReportModel model)
                   throws SaveReportException
Throws:
SaveReportException

writeGroupChild

protected void writeGroupChild(PrintWriter writer,
                               Group group,
                               ReportModel model)
                        throws SaveReportException
Throws:
SaveReportException

writeRow

protected void writeRow(PrintWriter writer,
                        TableRow row,
                        ReportModel model)
                 throws SaveReportException
Throws:
SaveReportException

writeCell

protected void writeCell(PrintWriter writer,
                         ReportModel model,
                         Cell cell,
                         int row,
                         int col)
                  throws SaveReportException
Throws:
SaveReportException

getCellHandler

protected CellParser getCellHandler()

endElement

public void endElement(String name,
                       StringBuffer value)
Specified by:
endElement in interface and.util.xml.XMLParser
Overrides:
endElement in class DefaultReportParser

writeSheet

public void writeSheet(PrintWriter writer,
                       ReportModel model)
                throws SaveReportException
Throws:
SaveReportException

writeRows

protected void writeRows(PrintWriter writer,
                         ReportModel model)
                  throws SaveReportException
Throws:
SaveReportException

saveSheet

protected void saveSheet(PrintWriter writer,
                         ReportModel model)
                  throws SaveReportException
Throws:
SaveReportException

getSheetName

protected abstract String getSheetName()

createCellHandler

protected abstract CellParser createCellHandler()