Class AbstractGuidedDecisionTableAttributeBuilder

    • Field Detail

      • headerRow

        protected final int headerRow
      • headerCol

        protected final int headerCol
      • actionType

        protected final org.drools.decisiontable.parser.ActionType.Code actionType
      • values

        protected final List<org.drools.workbench.models.guided.dtable.shared.model.DTCellValue52> values
      • conversionResult

        protected final org.drools.workbench.models.guided.dtable.shared.conversion.ConversionResult conversionResult
    • Constructor Detail

      • AbstractGuidedDecisionTableAttributeBuilder

        public AbstractGuidedDecisionTableAttributeBuilder​(int row,
                                                           int column,
                                                           org.drools.decisiontable.parser.ActionType.Code actionType,
                                                           org.drools.workbench.models.guided.dtable.shared.conversion.ConversionResult conversionResult)
    • Method Detail

      • addColumnData

        protected void addColumnData​(org.drools.workbench.models.guided.dtable.shared.model.GuidedDecisionTable52 dtable,
                                     org.drools.workbench.models.guided.dtable.shared.model.DTColumnConfig52 column)
      • getActionTypeCode

        public org.drools.decisiontable.parser.ActionType.Code getActionTypeCode()
        Specified by:
        getActionTypeCode 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
      • addTemplate

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

        public String getResult()
        Specified by:
        getResult 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