|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.drools.decisiontable.parser.xls.PropertiesSheetListener
public class PropertiesSheetListener
Reads an Excel sheet as key-value properties. Treats the first non-empty cell on a row as a key and any subsequent non-empty cell as a value. Any cells defined after the second cell are ignored as comments. Could be easily adapted to accept multiple values per key but the semantics were kept in line with Properties.
| Field Summary |
|---|
| Fields inherited from interface org.drools.decisiontable.parser.SheetListener |
|---|
NON_MERGED |
| Constructor Summary | |
|---|---|
PropertiesSheetListener()
|
|
| Method Summary | |
|---|---|
void |
finishSheet()
Come to the end of the sheet. |
java.util.Properties |
getProperties()
Return the key value pairs. |
void |
newCell(int row,
int column,
java.lang.String value,
int mergedColStart)
Enter a new cell. |
void |
newRow(int rowNumber,
int columns)
Enter a new row. |
void |
startSheet(java.lang.String name)
Start a new sheet |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertiesSheetListener()
| Method Detail |
|---|
public java.util.Properties getProperties()
public void startSheet(java.lang.String name)
SheetListener
startSheet in interface SheetListenername - the sheet namepublic void finishSheet()
SheetListener
finishSheet in interface SheetListener
public void newRow(int rowNumber,
int columns)
newRow in interface SheetListenerrowNumber - The row number.columns - The Colum number.
public void newCell(int row,
int column,
java.lang.String value,
int mergedColStart)
SheetListener
newCell in interface SheetListenerrow - the row numbercolumn - the column alpha character labelvalue - the string value of the cell
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||