Class GuidedDecisionTableMetadataBuilder

    • Constructor Detail

      • GuidedDecisionTableMetadataBuilder

        public GuidedDecisionTableMetadataBuilder​(int row,
                                                  int column,
                                                  org.drools.workbench.models.guided.dtable.shared.conversion.ConversionResult conversionResult)
    • Method Detail

      • populateDecisionTable

        public void populateDecisionTable​(org.drools.workbench.models.guided.dtable.shared.model.GuidedDecisionTable52 dtable,
                                          int maxRowCount)
        Description copied from interface: GuidedDecisionTableSourceBuilderDirect
        Populate the given Decision Table with details of the parsed column.
        Specified by:
        populateDecisionTable in interface GuidedDecisionTableSourceBuilderDirect
        Parameters:
        dtable - The target Guided Decision Table to populate
        maxRowCount - The maximum number of used rows detected in the XLS
      • 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
      • 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
      • 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