public class DefaultRuleSheetListener extends Object implements RuleSheetListener
| Modifier and Type | Field and Description |
|---|---|
static String |
DECLARES_TAG |
static String |
ESCAPE_QUOTES_FLAG |
static String |
FUNCTIONS_TAG |
static String |
IMPORT_TAG |
static String |
MAX_SALIENCE_TAG |
static String |
MIN_SALIENCE_TAG |
static String |
NUMERIC_DISABLED_FLAG |
static String |
QUERIES_TAG |
static String |
RULE_TABLE_TAG |
static String |
RULESET_TAG |
static String |
SEQUENTIAL_FLAG |
static String |
VARIABLES_TAG |
| Constructor and Description |
|---|
DefaultRuleSheetListener()
Constructor.
|
DefaultRuleSheetListener(boolean showPackage)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addRule(org.drools.template.model.Rule newRule)
Add a new rule to the current list of rules
|
void |
finishSheet() |
protected org.drools.template.model.Rule |
getCurrentRule() |
PropertiesSheetListener.CaseInsensitiveMap |
getProperties()
Return the rule sheet properties
|
org.drools.template.model.Package |
getRuleSet()
Build the final ruleset as parsed.
|
boolean |
isNumericDisabled() |
void |
newCell(int row,
int column,
String value,
int mergedColStart) |
void |
newRow(int rowNumber,
int columns) |
protected void |
postInitRuleTable(int row,
int column,
String value)
Called after rule table initialisation.
|
protected void |
preInitRuleTable(int row,
int column,
String value)
Called before rule table initialisation.
|
void |
setWorksheetName(String worksheetName) |
void |
startSheet(String name) |
public static final String QUERIES_TAG
public static final String FUNCTIONS_TAG
public static final String DECLARES_TAG
public static final String IMPORT_TAG
public static final String SEQUENTIAL_FLAG
public static final String ESCAPE_QUOTES_FLAG
public static final String MIN_SALIENCE_TAG
public static final String MAX_SALIENCE_TAG
public static final String NUMERIC_DISABLED_FLAG
public static final String VARIABLES_TAG
public static final String RULE_TABLE_TAG
public static final String RULESET_TAG
public DefaultRuleSheetListener()
public DefaultRuleSheetListener(boolean showPackage)
showPackage - if true, the rule set name is passed to the resulting packagepublic void setWorksheetName(String worksheetName)
public PropertiesSheetListener.CaseInsensitiveMap getProperties()
RuleSheetListenergetProperties in interface RuleSheetListenerpublic org.drools.template.model.Package getRuleSet()
RuleSheetListenergetRuleSet in interface RuleSheetListenerprotected void addRule(org.drools.template.model.Rule newRule)
newRule - public void startSheet(String name)
startSheet in interface org.drools.template.parser.DataListenerpublic void finishSheet()
finishSheet in interface org.drools.template.parser.DataListenerpublic void newRow(int rowNumber,
int columns)
newRow in interface org.drools.template.parser.DataListenerpublic void newCell(int row,
int column,
String value,
int mergedColStart)
newCell in interface org.drools.template.parser.DataListenerprotected void preInitRuleTable(int row,
int column,
String value)
protected org.drools.template.model.Rule getCurrentRule()
protected void postInitRuleTable(int row,
int column,
String value)
public boolean isNumericDisabled()
Copyright © 2001–2017 JBoss by Red Hat. All rights reserved.