public class Rule extends AttributedDRLElement implements DRLJavaEmitter
Modifier and Type | Field and Description |
---|---|
static int |
MAX_ROWS |
Constructor and Description |
---|
Rule(String name,
Integer salience,
int spreadsheetRow)
Create a new rule.
|
Modifier and Type | Method and Description |
---|---|
void |
addCondition(Condition con) |
void |
addConsequence(Consequence con) |
void |
addMetadata(String meta) |
void |
appendDescription(String value) |
List<Condition> |
getConditions() |
List<Consequence> |
getConsequences() |
List<String> |
getMetadata() |
String |
getName() |
int |
getSpreadsheetRowNumber() |
void |
renderDRL(DRLOutput out)
Each node can add its contribution to the output
|
void |
setDescription(String value) |
void |
setName(String value) |
asStringLiteral, asTimerLiteral, getAttribute, getSalience, setActivationGroup, setAgendaGroup, setAutoFocus, setCalendars, setDateEffective, setDateExpires, setDuration, setEnabled, setLockOnActive, setNoLoop, setRuleFlowGroup, setSalience, setSalience, setTimer
setComment
public static final int MAX_ROWS
public Rule(String name, Integer salience, int spreadsheetRow)
name
- The name of the rule. This may be used to calculate DRL row error
to Spreadsheet row error (just need to keep track of output lines, and map spreadsheetRow to a start
and end range in the rendered output).salience
- spreadsheetRow
- The phyical row number from the spreadsheet.public void addMetadata(String meta)
public void addCondition(Condition con)
public void addConsequence(Consequence con)
public void renderDRL(DRLOutput out)
DRLJavaEmitter
renderDRL
in interface DRLJavaEmitter
renderDRL
in class AttributedDRLElement
public List<Consequence> getConsequences()
public void setName(String value)
public String getName()
public void setDescription(String value)
public void appendDescription(String value)
public int getSpreadsheetRowNumber()
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.