Package org.drools.template.parser
Class RuleTemplate
- java.lang.Object
-
- org.drools.template.parser.RuleTemplate
-
public class RuleTemplate extends Object
A rule template made up of a name, the decision table columns required, the decision table columns that must be empty and the contents of the rule.
-
-
Constructor Summary
Constructors Constructor Description RuleTemplate(String n, TemplateContainer tc)RuleTemplate(String n, TemplateContainer tc, boolean replaceOptionals)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddColumn(String columnString)List<org.drools.template.parser.TemplateColumn>getColumns()StringgetContents()StringgetName()voidsetContents(String contents)StringtoString()
-
-
-
Constructor Detail
-
RuleTemplate
public RuleTemplate(String n, TemplateContainer tc)
-
RuleTemplate
public RuleTemplate(String n, TemplateContainer tc, boolean replaceOptionals)
-
-
Method Detail
-
getName
public String getName()
-
getColumns
public List<org.drools.template.parser.TemplateColumn> getColumns()
-
getContents
public String getContents()
-
addColumn
public void addColumn(String columnString)
-
setContents
public void setContents(String contents)
-
toString
public String toString()
- Overrides:
toStringin classObject- See Also:
Object.toString()
-
-