|
xelem.3.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.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 ExcelReaderFilterpublic void addExcelReaderListener(ExcelReaderListener listener)
ExcelReaderFilter
addExcelReaderListener in interface ExcelReaderFilterlistener - the listener to be registeredpublic boolean removeExcelReaderListener(ExcelReaderListener listener)
ExcelReaderFilter
removeExcelReaderListener in interface ExcelReaderFilterlistener - the listener to be removed
true if the given listener was registered
with this ExcelReaderFilter, false otherwise.public void clearExcelReaderListeners()
ExcelReaderFilter
clearExcelReaderListeners in interface ExcelReaderFilterpublic void startDocument()
startDocument in interface ExcelReaderListener
public void processingInstruction(String target,
String data)
processingInstruction in interface ExcelReaderListenertarget - the target of the processing instructiondata - the data of the processing instructionpublic void startWorkbook(String systemID)
startWorkbook in interface ExcelReaderListenersystemID - the systemID or "source" if no systemID was encounteredpublic void setDocumentProperties(DocumentProperties docProps)
setDocumentProperties in interface ExcelReaderListenerdocProps - fully populated instance of DocumentPropertiespublic void setExcelWorkbook(ExcelWorkbook excelWb)
setExcelWorkbook in interface ExcelReaderListenerexcelWb - fully populated instance of ExcelWorkbookpublic void setNamedRange(NamedRange namedRange)
setNamedRange in interface ExcelReaderListenernamedRange - fully populated instance of NamedRange
public void startWorksheet(int sheetIndex,
Worksheet sheet)
startWorksheet in interface ExcelReaderListenersheetIndex - 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
public void setNamedRange(int sheetIndex,
String sheetName,
NamedRange namedRange)
setNamedRange in interface ExcelReaderListenersheetIndex - the index of the worksheet (0-based)sheetName - the name of the worksheet where the namedRange was foundnamedRange - fully populated instance of NamedRange
public void startTable(int sheetIndex,
String sheetName,
Table table)
startTable in interface ExcelReaderListenersheetIndex - 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 instance
public void setColumn(int sheetIndex,
String sheetName,
Column column)
setColumn in interface ExcelReaderListenersheetIndex - the index of the worksheet (0-based)sheetName - the name of the worksheet where the column was foundcolumn - fully populated instance of Column
public void setRow(int sheetIndex,
String sheetName,
Row row)
setRow in interface ExcelReaderListenersheetIndex - the index of the worksheet (0-based)sheetName - the name of the worksheet where the row was foundrow - fully populated instance of Row
public void setCell(int sheetIndex,
String sheetName,
int rowIndex,
Cell cell)
setCell in interface ExcelReaderListenersheetIndex - 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 Cell
public void setWorksheetOptions(int sheetIndex,
String sheetName,
WorksheetOptions wsOptions)
setWorksheetOptions in interface ExcelReaderListenersheetIndex - the index of the worksheet (0-based)sheetName - the name of the worksheet where the worksheetOptions was foundwsOptions - fully populated instance of WorksheetOptions
public void setAutoFilter(int sheetIndex,
String sheetName,
AutoFilter autoFilter)
setAutoFilter in interface ExcelReaderListenersheetIndex - the index of the worksheet (0-based)sheetName - the name of the worksheet where the autoFilter was foundautoFilter - fully populated instance of AutoFilter
public void endWorksheet(int sheetIndex,
String sheetName)
endWorksheet in interface ExcelReaderListenersheetIndex - the index of the worksheet (0-based)sheetName - the name of the worksheetpublic void endDocument(Map<String,String> prefixMap)
endDocument in interface ExcelReaderListenerprefixMap - 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 | |||||||||