org.drools.decisiontable.parser
Class RuleSheetListener

java.lang.Object
  extended by org.drools.decisiontable.parser.RuleSheetListener
All Implemented Interfaces:
SheetListener

public class RuleSheetListener
extends java.lang.Object
implements SheetListener

 

Field Summary
static java.lang.String FUNCTIONS_TAG
           
static java.lang.String IMPORT_TAG
           
static java.lang.String RULE_TABLE_TAG
           
static java.lang.String RULESET_TAG
           
static java.lang.String SEQUENTIAL_FLAG
           
static java.lang.String VARIABLES_TAG
           
 
Constructor Summary
RuleSheetListener()
           
 
Method Summary
 void finishSheet()
          Come to the end of the sheet.
 java.util.Properties getProperties()
          Return the rule sheet properties
 Ruleset getRuleSet()
          Build the final ruleset as parsed.
 void newCell(int row, int column, java.lang.String value)
          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
 

Field Detail

FUNCTIONS_TAG

public static final java.lang.String FUNCTIONS_TAG
See Also:
Constant Field Values

IMPORT_TAG

public static final java.lang.String IMPORT_TAG
See Also:
Constant Field Values

SEQUENTIAL_FLAG

public static final java.lang.String SEQUENTIAL_FLAG
See Also:
Constant Field Values

VARIABLES_TAG

public static final java.lang.String VARIABLES_TAG
See Also:
Constant Field Values

RULE_TABLE_TAG

public static final java.lang.String RULE_TABLE_TAG
See Also:
Constant Field Values

RULESET_TAG

public static final java.lang.String RULESET_TAG
See Also:
Constant Field Values
Constructor Detail

RuleSheetListener

public RuleSheetListener()
Method Detail

getProperties

public java.util.Properties getProperties()
Return the rule sheet properties


getRuleSet

public Ruleset getRuleSet()
Build the final ruleset as parsed.


startSheet

public void startSheet(java.lang.String name)
Description copied from interface: SheetListener
Start a new sheet

Specified by:
startSheet in interface SheetListener
Parameters:
name - the sheet name

finishSheet

public void finishSheet()
Description copied from interface: SheetListener
Come to the end of the sheet.

Specified by:
finishSheet in interface SheetListener

newRow

public void newRow(int rowNumber,
                   int columns)
Description copied from interface: SheetListener
Enter a new row

Specified by:
newRow in interface SheetListener
Parameters:
rowNumber - TODO
columns - TODO

newCell

public void newCell(int row,
                    int column,
                    java.lang.String value)
Description copied from interface: SheetListener
Enter a new cell

Specified by:
newCell in interface SheetListener
Parameters:
row - the row number
column - the column alpha character label
value - the string value of the cell