xelem.3.0

nl.fountain.xelem.lex
Class DefaultExcelReaderListener

java.lang.Object
  extended by nl.fountain.xelem.lex.DefaultExcelReaderListener
All Implemented Interfaces:
ExcelReaderListener
Direct Known Subclasses:
WorkbookListener

public class DefaultExcelReaderListener
extends Object
implements ExcelReaderListener

Does effectively nothing. It's up to the subclasses of this class to do effectively something.

Since:
xelem.2.0

Constructor Summary
DefaultExcelReaderListener()
           
 
Method Summary
 void endDocument(Map<String,String> prefixMap)
          Does effectively nothing.
 void endWorksheet(int sheetIndex, String sheetName)
          Does effectively nothing.
 void processingInstruction(String target, String data)
          Does effectively nothing.
 void setAutoFilter(int sheetIndex, String sheetName, AutoFilter autoFilter)
          Does effectively nothing.
 void setCell(int sheetIndex, String sheetName, int rowIndex, Cell cell)
          Does effectively nothing.
 void setColumn(int sheetIndex, String sheetName, Column column)
          Does effectively nothing.
 void setDocumentProperties(DocumentProperties docProps)
          Does effectively nothing.
 void setExcelWorkbook(ExcelWorkbook excelWb)
          Does effectively nothing.
 void setNamedRange(int sheetIndex, String sheetName, NamedRange namedRange)
          Does effectively nothing.
 void setNamedRange(NamedRange namedRange)
          Does effectively nothing.
 void setRow(int sheetIndex, String sheetName, Row row)
          Does effectively nothing.
 void setWorksheetOptions(int sheetIndex, String sheetName, WorksheetOptions wsOptions)
          Does effectively nothing.
 void startDocument()
          Does effectively nothing.
 void startTable(int sheetIndex, String sheetName, Table table)
          Does effectively nothing.
 void startWorkbook(String systemID)
          Does effectively nothing.
 void startWorksheet(int sheetIndex, Worksheet sheet)
          Does effectively nothing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultExcelReaderListener

public DefaultExcelReaderListener()
Method Detail

startDocument

public void startDocument()
Does effectively nothing. Subclasses can override this method to do effectively something.

Specified by:
startDocument in interface ExcelReaderListener

processingInstruction

public void processingInstruction(String target,
                                  String data)
Does effectively nothing. Subclasses can override this method to do effectively something.

Specified by:
processingInstruction in interface ExcelReaderListener
Parameters:
target - the target of the processing instruction
data - the data of the processing instruction

startWorkbook

public void startWorkbook(String systemID)
Does effectively nothing. Subclasses can override this method to do effectively something.

Specified by:
startWorkbook in interface ExcelReaderListener
Parameters:
systemID - the systemID or "source" if no systemID was encountered

setDocumentProperties

public void setDocumentProperties(DocumentProperties docProps)
Does effectively nothing. Subclasses can override this method to do effectively something.

Specified by:
setDocumentProperties in interface ExcelReaderListener
Parameters:
docProps - fully populated instance of DocumentProperties

setExcelWorkbook

public void setExcelWorkbook(ExcelWorkbook excelWb)
Does effectively nothing. Subclasses can override this method to do effectively something.

Specified by:
setExcelWorkbook in interface ExcelReaderListener
Parameters:
excelWb - fully populated instance of ExcelWorkbook

setNamedRange

public void setNamedRange(NamedRange namedRange)
Does effectively nothing. Subclasses can override this method to do effectively something.

Specified by:
setNamedRange in interface ExcelReaderListener
Parameters:
namedRange - fully populated instance of NamedRange

startWorksheet

public void startWorksheet(int sheetIndex,
                           Worksheet sheet)
Does effectively nothing. Subclasses can override this method to do effectively something.

Specified by:
startWorksheet in interface ExcelReaderListener
Parameters:
sheetIndex - the index of the encountered sheet. 0-based.
sheet - dummy instance of Worksheet. Only the (xml-)attributes of the Worksheet-element have been set on the instance

setNamedRange

public void setNamedRange(int sheetIndex,
                          String sheetName,
                          NamedRange namedRange)
Does effectively nothing. Subclasses can override this method to do effectively something.

Specified by:
setNamedRange in interface ExcelReaderListener
Parameters:
sheetIndex - the index of the worksheet (0-based)
sheetName - the name of the worksheet where the namedRange was found
namedRange - fully populated instance of NamedRange

startTable

public void startTable(int sheetIndex,
                       String sheetName,
                       Table table)
Does effectively nothing. Subclasses can override this method to do effectively something.

Specified by:
startTable in interface ExcelReaderListener
Parameters:
sheetIndex - the index of the worksheet (0-based)
sheetName - the name of the worksheet where the table was found
table - dummy instance of Table. Only the (xml-)attributes of the Table-element have been set on the instance

setColumn

public void setColumn(int sheetIndex,
                      String sheetName,
                      Column column)
Does effectively nothing. Subclasses can override this method to do effectively something.

Specified by:
setColumn in interface ExcelReaderListener
Parameters:
sheetIndex - the index of the worksheet (0-based)
sheetName - the name of the worksheet where the column was found
column - fully populated instance of Column

setRow

public void setRow(int sheetIndex,
                   String sheetName,
                   Row row)
Does effectively nothing. Subclasses can override this method to do effectively something.

Specified by:
setRow in interface ExcelReaderListener
Parameters:
sheetIndex - the index of the worksheet (0-based)
sheetName - the name of the worksheet where the row was found
row - fully populated instance of Row

setCell

public void setCell(int sheetIndex,
                    String sheetName,
                    int rowIndex,
                    Cell cell)
Does effectively nothing. Subclasses can override this method to do effectively something.

Specified by:
setCell in interface ExcelReaderListener
Parameters:
sheetIndex - the index of the worksheet (0-based)
sheetName - the name of the worksheet where the cell was found
rowIndex - the index of the row
cell - fully populated instance of Cell

setWorksheetOptions

public void setWorksheetOptions(int sheetIndex,
                                String sheetName,
                                WorksheetOptions wsOptions)
Does effectively nothing. Subclasses can override this method to do effectively something.

Specified by:
setWorksheetOptions in interface ExcelReaderListener
Parameters:
sheetIndex - the index of the worksheet (0-based)
sheetName - the name of the worksheet where the worksheetOptions was found
wsOptions - fully populated instance of WorksheetOptions

setAutoFilter

public void setAutoFilter(int sheetIndex,
                          String sheetName,
                          AutoFilter autoFilter)
Does effectively nothing. Subclasses can override this method to do effectively something.

Specified by:
setAutoFilter in interface ExcelReaderListener
Parameters:
sheetIndex - the index of the worksheet (0-based)
sheetName - the name of the worksheet where the autoFilter was found
autoFilter - fully populated instance of AutoFilter

endWorksheet

public void endWorksheet(int sheetIndex,
                         String sheetName)
Does effectively nothing. Subclasses can override this method to do effectively something.

Specified by:
endWorksheet in interface ExcelReaderListener
Parameters:
sheetIndex - the index of the worksheet (0-based)
sheetName - the name of the worksheet

endDocument

public void endDocument(Map<String,String> prefixMap)
Does effectively nothing. Subclasses can override this method to do effectively something.

Specified by:
endDocument in interface ExcelReaderListener
Parameters:
prefixMap - a map of prefixes (keys) and uri's recieved while reading

xelem.3.0