org.drools.decisiontable.parser
Class RhsBuilder

java.lang.Object
  extended by org.drools.decisiontable.parser.RhsBuilder
All Implemented Interfaces:
SourceBuilder

public class RhsBuilder
extends Object
implements SourceBuilder

Builds up a consequence entry.


Constructor Summary
RhsBuilder(ActionType.Code code, int row, int column, String boundVariable)
           
 
Method Summary
 void addCellValue(int row, int column, String value)
           
 void addTemplate(int row, int column, String content)
           
 void clearValues()
           
 ActionType.Code getActionTypeCode()
           
 String getResult()
           
 boolean hasValues()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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:
getActionTypeCode in interface SourceBuilder

addTemplate

public void addTemplate(int row,
                        int column,
                        String content)
Specified by:
addTemplate in interface SourceBuilder

addCellValue

public void addCellValue(int row,
                         int column,
                         String value)
Specified by:
addCellValue in interface SourceBuilder

clearValues

public void clearValues()
Specified by:
clearValues in interface SourceBuilder

getResult

public String getResult()
Specified by:
getResult in interface SourceBuilder

hasValues

public boolean hasValues()
Specified by:
hasValues in interface SourceBuilder


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