|
xelem.3.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nl.fountain.xelem.lex.DefaultExcelReaderFilter
public class DefaultExcelReaderFilter
Passes all events, values and instances unfiltered. It's up to the subclasses of this class to take appropriate filtering action.
Constructor Summary | |
---|---|
DefaultExcelReaderFilter()
|
Method Summary | |
---|---|
void |
addExcelReaderListener(ExcelReaderListener listener)
Registers the given listener. |
void |
clearExcelReaderListeners()
Remove all registered listeners. |
void |
endDocument(Map<String,String> prefixMap)
Passes the event unfiltered to it's listeners. |
void |
endWorksheet(int sheetIndex,
String sheetName)
Passes the event unfiltered to it's listeners. |
List<ExcelReaderListener> |
getListeners()
Gets a list of registered listeners. |
void |
processingInstruction(String target,
String data)
Passes the event unfiltered to it's listeners. |
boolean |
removeExcelReaderListener(ExcelReaderListener listener)
Remove the specified listener. |
void |
setAutoFilter(int sheetIndex,
String sheetName,
AutoFilter autoFilter)
Passes the event unfiltered to it's listeners. |
void |
setCell(int sheetIndex,
String sheetName,
int rowIndex,
Cell cell)
Passes the event unfiltered to it's listeners. |
void |
setColumn(int sheetIndex,
String sheetName,
Column column)
Passes the event unfiltered to it's listeners. |
void |
setDocumentProperties(DocumentProperties docProps)
Passes the event unfiltered to it's listeners. |
void |
setExcelWorkbook(ExcelWorkbook excelWb)
Passes the event unfiltered to it's listeners. |
void |
setNamedRange(int sheetIndex,
String sheetName,
NamedRange namedRange)
Passes the event unfiltered to it's listeners. |
void |
setNamedRange(NamedRange namedRange)
Passes the event unfiltered to it's listeners. |
void |
setRow(int sheetIndex,
String sheetName,
Row row)
Passes the event unfiltered to it's listeners. |
void |
setWorksheetOptions(int sheetIndex,
String sheetName,
WorksheetOptions wsOptions)
Passes the event unfiltered to it's listeners. |
void |
startDocument()
Passes the event unfiltered to it's listeners. |
void |
startTable(int sheetIndex,
String sheetName,
Table table)
Passes the event unfiltered to it's listeners. |
void |
startWorkbook(String systemID)
Passes the event unfiltered to it's listeners. |
void |
startWorksheet(int sheetIndex,
Worksheet sheet)
Passes the event unfiltered to it's listeners. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultExcelReaderFilter()
Method Detail |
---|
public List<ExcelReaderListener> getListeners()
ExcelReaderFilter
getListeners
in interface ExcelReaderFilter
public void addExcelReaderListener(ExcelReaderListener listener)
ExcelReaderFilter
addExcelReaderListener
in interface ExcelReaderFilter
listener
- the listener to be registeredpublic boolean removeExcelReaderListener(ExcelReaderListener listener)
ExcelReaderFilter
removeExcelReaderListener
in interface ExcelReaderFilter
listener
- the listener to be removed
true
if the given listener was registered
with this ExcelReaderFilter, false
otherwise.public void clearExcelReaderListeners()
ExcelReaderFilter
clearExcelReaderListeners
in interface ExcelReaderFilter
public void startDocument()
startDocument
in interface ExcelReaderListener
public void processingInstruction(String target, String data)
processingInstruction
in interface ExcelReaderListener
target
- the target of the processing instructiondata
- the data of the processing instructionpublic void startWorkbook(String systemID)
startWorkbook
in interface ExcelReaderListener
systemID
- the systemID or "source" if no systemID was encounteredpublic void setDocumentProperties(DocumentProperties docProps)
setDocumentProperties
in interface ExcelReaderListener
docProps
- fully populated instance of DocumentPropertiespublic void setExcelWorkbook(ExcelWorkbook excelWb)
setExcelWorkbook
in interface ExcelReaderListener
excelWb
- fully populated instance of ExcelWorkbookpublic void setNamedRange(NamedRange namedRange)
setNamedRange
in interface ExcelReaderListener
namedRange
- fully populated instance of NamedRangepublic void startWorksheet(int sheetIndex, Worksheet sheet)
startWorksheet
in interface ExcelReaderListener
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 instancepublic void setNamedRange(int sheetIndex, String sheetName, NamedRange namedRange)
setNamedRange
in interface ExcelReaderListener
sheetIndex
- the index of the worksheet (0-based)sheetName
- the name of the worksheet where the namedRange was foundnamedRange
- fully populated instance of NamedRangepublic void startTable(int sheetIndex, String sheetName, Table table)
startTable
in interface ExcelReaderListener
sheetIndex
- the index of the worksheet (0-based)sheetName
- the name of the worksheet where the table was foundtable
- dummy instance of Table. Only the (xml-)attributes
of the Table-element have been set on the instancepublic void setColumn(int sheetIndex, String sheetName, Column column)
setColumn
in interface ExcelReaderListener
sheetIndex
- the index of the worksheet (0-based)sheetName
- the name of the worksheet where the column was foundcolumn
- fully populated instance of Columnpublic void setRow(int sheetIndex, String sheetName, Row row)
setRow
in interface ExcelReaderListener
sheetIndex
- the index of the worksheet (0-based)sheetName
- the name of the worksheet where the row was foundrow
- fully populated instance of Rowpublic void setCell(int sheetIndex, String sheetName, int rowIndex, Cell cell)
setCell
in interface ExcelReaderListener
sheetIndex
- the index of the worksheet (0-based)sheetName
- the name of the worksheet where the cell was foundrowIndex
- the index of the rowcell
- fully populated instance of Cellpublic void setWorksheetOptions(int sheetIndex, String sheetName, WorksheetOptions wsOptions)
setWorksheetOptions
in interface ExcelReaderListener
sheetIndex
- the index of the worksheet (0-based)sheetName
- the name of the worksheet where the worksheetOptions was foundwsOptions
- fully populated instance of WorksheetOptionspublic void setAutoFilter(int sheetIndex, String sheetName, AutoFilter autoFilter)
setAutoFilter
in interface ExcelReaderListener
sheetIndex
- the index of the worksheet (0-based)sheetName
- the name of the worksheet where the autoFilter was foundautoFilter
- fully populated instance of AutoFilterpublic void endWorksheet(int sheetIndex, String sheetName)
endWorksheet
in interface ExcelReaderListener
sheetIndex
- the index of the worksheet (0-based)sheetName
- the name of the worksheetpublic void endDocument(Map<String,String> prefixMap)
endDocument
in interface ExcelReaderListener
prefixMap
- a map of prefixes (keys) and uri's recieved while reading
|
xelem.3.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |