Class GuidedDecisionTableMetadataBuilder
- java.lang.Object
-
- org.drools.workbench.screens.dtablexls.backend.server.conversion.builders.GuidedDecisionTableMetadataBuilder
-
- All Implemented Interfaces:
org.drools.decisiontable.parser.SourceBuilder,GuidedDecisionTableSourceBuilder,GuidedDecisionTableSourceBuilderDirect
public class GuidedDecisionTableMetadataBuilder extends Object implements GuidedDecisionTableSourceBuilderDirect
Builder for Metadata columns
-
-
Constructor Summary
Constructors Constructor Description GuidedDecisionTableMetadataBuilder(int row, int column, 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.booleanhasValues()voidpopulateDecisionTable(org.drools.workbench.models.guided.dtable.shared.model.GuidedDecisionTable52 dtable, int maxRowCount)Populate the given Decision Table with details of the parsed column.
-
-
-
Method Detail
-
populateDecisionTable
public void populateDecisionTable(org.drools.workbench.models.guided.dtable.shared.model.GuidedDecisionTable52 dtable, int maxRowCount)Description copied from interface:GuidedDecisionTableSourceBuilderDirectPopulate the given Decision Table with details of the parsed column.- Specified by:
populateDecisionTablein interfaceGuidedDecisionTableSourceBuilderDirect- Parameters:
dtable- The target Guided Decision Table to populatemaxRowCount- The maximum number of used rows detected in the XLS
-
addTemplate
public void addTemplate(int row, int column, String content)- Specified by:
addTemplatein interfaceorg.drools.decisiontable.parser.SourceBuilder
-
addCellValue
public void addCellValue(int row, int column, String value)- Specified by:
addCellValuein 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
-
getResult
public String getResult()
- Specified by:
getResultin 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
-
-