jdbreport.model.io.xml
Class CellParser

java.lang.Object
  extended by and.util.xml.AbstractXMLParser
      extended by jdbreport.model.io.xml.DefaultReportParser
          extended by jdbreport.model.io.xml.CellParser
All Implemented Interfaces:
and.util.xml.XMLParser
Direct Known Subclasses:
TemplCellHandler

public class CellParser
extends DefaultReportParser

Version:
2.0 19.12.2009
Author:
Andrey Kholmanskih

Field Summary
 
Fields inherited from class jdbreport.model.io.xml.DefaultReportParser
CELL, ROW, SHEET, STYLE, STYLES
 
Constructor Summary
CellParser(DefaultReaderHandler reportHandler, Cell cell, ResourceReader resReader)
           
CellParser(DefaultReaderHandler reportHandler, ResourceWriter resIO)
           
 
Method Summary
 void endElement(String name, StringBuffer value)
           
 Cell getCell()
           
protected  String getParams(Cell cell, int col)
           
protected  Image readImage(String s)
           
 void save(PrintWriter writer, ReportModel model, Cell cell, int row, int col)
           
 void setCell(Cell cell)
           
 boolean startElement(String name, Attributes attributes)
           
protected  void writeElements(PrintWriter writer, ReportModel model, Cell cell, int row, int column)
           
 
Methods inherited from class jdbreport.model.io.xml.DefaultReportParser
getCurrentModel, getDefaultReportHandler, getReportBook, getReportModel, setCurrentModel
 
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
 

Constructor Detail

CellParser

public CellParser(DefaultReaderHandler reportHandler,
                  ResourceWriter resIO)

CellParser

public CellParser(DefaultReaderHandler reportHandler,
                  Cell cell,
                  ResourceReader resReader)
Parameters:
reportHandler -
Method Detail

startElement

public boolean startElement(String name,
                            Attributes attributes)
                     throws SAXException
Specified by:
startElement in interface and.util.xml.XMLParser
Overrides:
startElement in class DefaultReportParser
Throws:
SAXException

readImage

protected Image readImage(String s)
                   throws SAXException
Throws:
SAXException

endElement

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

save

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

writeElements

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

getParams

protected String getParams(Cell cell,
                           int col)

setCell

public void setCell(Cell cell)
Parameters:
cell - The cell to set.

getCell

public Cell getCell()
Returns:
Returns the cell.