Class GuidedDecisionTableLHSBuilder

    • Constructor Detail

      • GuidedDecisionTableLHSBuilder

        public GuidedDecisionTableLHSBuilder​(int row,
                                             int column,
                                             String colDefinition,
                                             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: GuidedDecisionTableSourceBuilderIndirect
        Get 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:
        getVariableColumns in interface GuidedDecisionTableSourceBuilderIndirect
        Returns:
      • addTemplate

        public void addTemplate​(int row,
                                int column,
                                String content)
        Specified by:
        addTemplate in interface org.drools.decisiontable.parser.SourceBuilder
      • addCellValue

        public void addCellValue​(int row,
                                 int column,
                                 String value)
        Specified by:
        addCellValue in interface org.drools.decisiontable.parser.SourceBuilder
      • getActionTypeCode

        public org.drools.decisiontable.parser.ActionType.Code getActionTypeCode()
        Specified by:
        getActionTypeCode in interface org.drools.decisiontable.parser.SourceBuilder
      • getResult

        public String getResult()
        Specified by:
        getResult in interface org.drools.decisiontable.parser.SourceBuilder
      • clearValues

        public void clearValues()
        Specified by:
        clearValues in interface org.drools.decisiontable.parser.SourceBuilder
      • hasValues

        public boolean hasValues()
        Specified by:
        hasValues in interface org.drools.decisiontable.parser.SourceBuilder
      • getRowCount

        public int getRowCount()
        Description copied from interface: GuidedDecisionTableSourceBuilder
        Get 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:
        getRowCount in interface GuidedDecisionTableSourceBuilder
        Returns:
      • getColumn

        public int getColumn()
        Specified by:
        getColumn in interface org.drools.decisiontable.parser.SourceBuilder