Package org.drools.template.parser
Interface DataListener
-
- All Known Implementing Classes:
TemplateDataListener
public interface DataListenerCallback interface for scanning an spreadsheet.
-
-
Field Summary
Fields Modifier and Type Field Description static intNON_MERGED
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidfinishSheet()Come to the end of the sheet.voidnewCell(int row, int column, String value, int mergedColStart)Enter a new cell.voidnewRow(int rowNumber, int columns)Enter a new row.voidstartSheet(String name)Start a new sheet
-
-
-
Field Detail
-
NON_MERGED
static final int NON_MERGED
- See Also:
- Constant Field Values
-
-
Method Detail
-
startSheet
void startSheet(String name)
Start a new sheet- Parameters:
name- the sheet name
-
finishSheet
void finishSheet()
Come to the end of the sheet.
-
newRow
void newRow(int rowNumber, int columns)Enter a new row.- Parameters:
rowNumber-columns-
-
newCell
void newCell(int row, int column, String value, int mergedColStart)Enter a new cell. Do NOT call this event for trailling cells at the end of the line. It will just confuse the parser. If all the trailing cells are empty, just stop raising events.- Parameters:
row- the row numbercolumn- the column alpha character labelvalue- the string value of the cellmergedCol- the "source" column if it is merged. -1 otherwise.
-
-