站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 4.0.0.11754MR2 API 英文版文档

ExternalSheetListener (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档


org.drools.decisiontable.parser
Class ExternalSheetListener

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

public class ExternalSheetListener
extends Object
implements RuleSheetListener

SheetListener for creating rules from a template

Author:
Steven Williams

Field Summary
 
Fields inherited from interface org.drools.decisiontable.parser.SheetListener
NON_MERGED
 
Constructor Summary
ExternalSheetListener(int startRow, int startCol, String template)
           
ExternalSheetListener(int startRow, int startCol, TemplateContainer tc)
           
ExternalSheetListener(int startRow, int startCol, TemplateContainer tc, TemplateRuleBase rb)
           
ExternalSheetListener(int startRow, int startCol, TemplateContainer tc, TemplateRuleBase ruleBase, Generator generator)
           
 
Method Summary
 void finishSheet()
          Come to the end of the sheet.
 Properties getProperties()
          Return the rule sheet properties
 Package getRuleSet()
          Build the final ruleset as parsed.
 void newCell(int row, int column, String value, int mergedColStart)
          Enter a new cell.
 void newRow(int rowNumber, int columnCount)
          Enter a new row.
 String renderDRL()
           
 void startSheet(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

ExternalSheetListener

public ExternalSheetListener(int startRow,
                             int startCol,
                             String template)

ExternalSheetListener

public ExternalSheetListener(int startRow,
                             int startCol,
                             TemplateContainer tc)

ExternalSheetListener

public ExternalSheetListener(int startRow,
                             int startCol,
                             TemplateContainer tc,
                             TemplateRuleBase rb)

ExternalSheetListener

public ExternalSheetListener(int startRow,
                             int startCol,
                             TemplateContainer tc,
                             TemplateRuleBase ruleBase,
                             Generator generator)
Method Detail

getProperties

public Properties getProperties()
Description copied from interface: RuleSheetListener
Return the rule sheet properties

Specified by:
getProperties in interface RuleSheetListener

getRuleSet

public Package getRuleSet()
Description copied from interface: RuleSheetListener
Build the final ruleset as parsed.

Specified by:
getRuleSet in interface RuleSheetListener

finishSheet

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

Specified by:
finishSheet in interface SheetListener

newCell

public void newCell(int row,
                    int column,
                    String value,
                    int mergedColStart)
Description copied from interface: SheetListener
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.

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

newRow

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

Specified by:
newRow in interface SheetListener

startSheet

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

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

renderDRL

public String renderDRL()


Copyright © 2001-2007 JBoss Inc.. All Rights Reserved.