Class DefaultDescriptionBuilder
- java.lang.Object
-
- org.drools.workbench.screens.dtablexls.backend.server.conversion.builders.DefaultDescriptionBuilder
-
- All Implemented Interfaces:
org.drools.decisiontable.parser.SourceBuilder,GuidedDecisionTableSourceBuilder,GuidedDecisionTableSourceBuilderDirect
public class DefaultDescriptionBuilder extends Object implements GuidedDecisionTableSourceBuilderDirect
Default description builder for when an explicit column has not been defined in the XLS file. Descriptions are empty Strings.
-
-
Constructor Summary
Constructors Constructor Description DefaultDescriptionBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCellValue(int row, int column, String value)voidaddTemplate(int row, int col, 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
-
getActionTypeCode
public org.drools.decisiontable.parser.ActionType.Code getActionTypeCode()
- Specified by:
getActionTypeCodein interfaceorg.drools.decisiontable.parser.SourceBuilder
-
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
-
addCellValue
public void addCellValue(int row, int column, String value)- Specified by:
addCellValuein 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
-
addTemplate
public void addTemplate(int row, int col, String content)- Specified by:
addTemplatein 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
-
-