Package org.drools.decisiontable.parser
Class RhsBuilder
- java.lang.Object
-
- org.drools.decisiontable.parser.RhsBuilder
-
- All Implemented Interfaces:
SourceBuilder
public class RhsBuilder extends Object implements SourceBuilder
Builds up a consequence entry.
-
-
Constructor Summary
Constructors Constructor Description RhsBuilder(ActionType.Code code, int row, int column, String boundVariable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCellValue(int row, int column, String value)voidaddTemplate(int row, int column, String content)voidclearValues()ActionType.CodegetActionTypeCode()intgetColumn()StringgetResult()booleanhasValues()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.drools.decisiontable.parser.SourceBuilder
addCellValue
-
-
-
-
Constructor Detail
-
RhsBuilder
public RhsBuilder(ActionType.Code code, int row, int column, String boundVariable)
- Parameters:
boundVariable- Pass in a bound variable if there is one. Any cells below then will be called as methods on it. Leaving it blank will make it work in "classic" mode.
-
-
Method Detail
-
getActionTypeCode
public ActionType.Code getActionTypeCode()
- Specified by:
getActionTypeCodein interfaceSourceBuilder
-
addTemplate
public void addTemplate(int row, int column, String content)- Specified by:
addTemplatein interfaceSourceBuilder
-
addCellValue
public void addCellValue(int row, int column, String value)- Specified by:
addCellValuein interfaceSourceBuilder
-
clearValues
public void clearValues()
- Specified by:
clearValuesin interfaceSourceBuilder
-
getResult
public String getResult()
- Specified by:
getResultin interfaceSourceBuilder
-
hasValues
public boolean hasValues()
- Specified by:
hasValuesin interfaceSourceBuilder
-
getColumn
public int getColumn()
- Specified by:
getColumnin interfaceSourceBuilder
-
-