Package org.drools.template.parser
Interface DataListener
- All Known Implementing Classes:
TemplateDataListener
public interface DataListener
Callback interface for scanning an spreadsheet.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidCome to the end of the sheet.voidEnter a new cell.voidnewRow(int rowNumber, int columns) Enter a new row.voidstartSheet(String name) Start a new sheet
-
Field Details
-
NON_MERGED
static final int NON_MERGED- See Also:
-
-
Method Details
-
startSheet
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
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 cellmergedColStart- the "source" column if it is merged. -1 otherwise.
-