jdbreport.model.io.xml
Class DBReportParser

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

public class DBReportParser
extends DefaultReportParser

Version:
2.0 15.11.2010
Author:
Andrey Kholmanskih

Field Summary
static String COL
           
static String COL_N
           
static String COL_W
           
static String COLCOUNT
           
static String COLS
           
static String COLUMN_PAGE_BREAK
           
static String CSPAN
           
protected  Group currentGroup
           
static String DEFAULT_COL_WIDTH
           
static String DEFAULT_ROW_HEIGHT
           
static String GROUP
           
static String ID
           
protected  boolean inRows
           
static String REP_PAGE
           
static String REPORTTITLE
           
static String ROW_H
           
static String ROW_PAGE_BREAK
           
static String ROWS
           
static String RSPAN
           
 
Fields inherited from class jdbreport.model.io.xml.DefaultReportParser
CELL, ROW, SHEET, STYLE, STYLES
 
Constructor Summary
DBReportParser(DefaultReaderHandler reportHandler, ResourceReader resReader)
           
 
Method Summary
protected  CellParser createCellHandler(Cell cell)
           
 void endElement(String name, StringBuffer value)
           
protected  ResourceReader getResourceReader()
           
protected  void parseGroup(Attributes attributes)
           
 boolean startElement(String name, Attributes attributes)
           
 
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
 

Field Detail

REP_PAGE

public static final String REP_PAGE
See Also:
Constant Field Values

GROUP

public static final String GROUP
See Also:
Constant Field Values

DEFAULT_COL_WIDTH

public static final String DEFAULT_COL_WIDTH
See Also:
Constant Field Values

DEFAULT_ROW_HEIGHT

public static final String DEFAULT_ROW_HEIGHT
See Also:
Constant Field Values

COL_W

public static final String COL_W
See Also:
Constant Field Values

ROW_H

public static final String ROW_H
See Also:
Constant Field Values

COL_N

public static final String COL_N
See Also:
Constant Field Values

RSPAN

public static final String RSPAN
See Also:
Constant Field Values

CSPAN

public static final String CSPAN
See Also:
Constant Field Values

COL

public static final String COL
See Also:
Constant Field Values

COLUMN_PAGE_BREAK

public static final String COLUMN_PAGE_BREAK
See Also:
Constant Field Values

ROW_PAGE_BREAK

public static final String ROW_PAGE_BREAK
See Also:
Constant Field Values

ROWS

public static final String ROWS
See Also:
Constant Field Values

COLS

public static final String COLS
See Also:
Constant Field Values

REPORTTITLE

public static final String REPORTTITLE
See Also:
Constant Field Values

COLCOUNT

public static final String COLCOUNT
See Also:
Constant Field Values

ID

public static final String ID
See Also:
Constant Field Values

inRows

protected boolean inRows

currentGroup

protected Group currentGroup
Constructor Detail

DBReportParser

public DBReportParser(DefaultReaderHandler reportHandler,
                      ResourceReader resReader)
Method Detail

startElement

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

parseGroup

protected void parseGroup(Attributes attributes)

createCellHandler

protected CellParser createCellHandler(Cell cell)

endElement

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

getResourceReader

protected ResourceReader getResourceReader()