Class GuidedDecisionTableRHSBuilder
- java.lang.Object
-
- org.drools.workbench.screens.dtablexls.backend.server.conversion.builders.GuidedDecisionTableRHSBuilder
-
- All Implemented Interfaces:
org.drools.decisiontable.parser.SourceBuilder,GuidedDecisionTableSourceBuilder,GuidedDecisionTableSourceBuilderIndirect,HasColumnHeadings
public class GuidedDecisionTableRHSBuilder extends Object implements HasColumnHeadings, GuidedDecisionTableSourceBuilderIndirect
Builder for Action columns
-
-
Constructor Summary
Constructors Constructor Description GuidedDecisionTableRHSBuilder(int row, int column, String boundVariable, List<GuidedDecisionTableSourceBuilder> sourceBuilders, ParameterUtilities parameterUtilities, org.drools.workbench.models.guided.dtable.shared.conversion.ConversionResult conversionResult)
-
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()org.drools.decisiontable.parser.ActionType.CodegetActionTypeCode()intgetColumn()StringgetResult()intgetRowCount()Get the number of rows processed by the SourceBuilder.Map<Integer,ParameterizedValueBuilder>getValueBuilders()Get the ParameterizedValueBuilder for the BRL Fragment.List<org.drools.workbench.models.guided.dtable.shared.model.BRLVariableColumn>getVariableColumns()Get the BRL Variable Columns required to represent the XLS Column.booleanhasValues()voidsetColumnHeader(int column, String value)Set column header
-
-
-
Constructor Detail
-
GuidedDecisionTableRHSBuilder
public GuidedDecisionTableRHSBuilder(int row, int column, String boundVariable, List<GuidedDecisionTableSourceBuilder> sourceBuilders, ParameterUtilities parameterUtilities, org.drools.workbench.models.guided.dtable.shared.conversion.ConversionResult conversionResult)
-
-
Method Detail
-
getVariableColumns
public List<org.drools.workbench.models.guided.dtable.shared.model.BRLVariableColumn> getVariableColumns()
Description copied from interface:GuidedDecisionTableSourceBuilderIndirectGet the BRL Variable Columns required to represent the XLS Column. The mapping between XLS column and Guided Decision Table column may not be 1-to-1 and hence we gather the BRL Variable Columns and match against RuleModel after all columns have been handled.- Specified by:
getVariableColumnsin interfaceGuidedDecisionTableSourceBuilderIndirect- Returns:
-
getValueBuilders
public Map<Integer,ParameterizedValueBuilder> getValueBuilders()
Description copied from interface:GuidedDecisionTableSourceBuilderIndirectGet the ParameterizedValueBuilder for the BRL Fragment. The map is keyed on source XLS column index.- Specified by:
getValueBuildersin interfaceGuidedDecisionTableSourceBuilderIndirect- Returns:
-
addTemplate
public void addTemplate(int row, int column, String content)- Specified by:
addTemplatein interfaceorg.drools.decisiontable.parser.SourceBuilder
-
setColumnHeader
public void setColumnHeader(int column, String value)Description copied from interface:HasColumnHeadingsSet column header- Specified by:
setColumnHeaderin interfaceHasColumnHeadings
-
addCellValue
public void addCellValue(int row, int column, String value)- Specified by:
addCellValuein interfaceorg.drools.decisiontable.parser.SourceBuilder
-
getResult
public String getResult()
- Specified by:
getResultin interfaceorg.drools.decisiontable.parser.SourceBuilder
-
getActionTypeCode
public org.drools.decisiontable.parser.ActionType.Code getActionTypeCode()
- Specified by:
getActionTypeCodein interfaceorg.drools.decisiontable.parser.SourceBuilder
-
clearValues
public void clearValues()
- Specified by:
clearValuesin interfaceorg.drools.decisiontable.parser.SourceBuilder
-
hasValues
public boolean hasValues()
- Specified by:
hasValuesin interfaceorg.drools.decisiontable.parser.SourceBuilder
-
getRowCount
public int getRowCount()
Description copied from interface:GuidedDecisionTableSourceBuilderGet the number of rows processed by the SourceBuilder. POI returns cells that contain empty values (if the User has set the value to, for example, an empty String). This can mean not all columns contain the same number of rows.- Specified by:
getRowCountin interfaceGuidedDecisionTableSourceBuilder- Returns:
-
getColumn
public int getColumn()
- Specified by:
getColumnin interfaceorg.drools.decisiontable.parser.SourceBuilder
-
-