org.drools.guvnor.server.converters.decisiontable.builders
Class DefaultDescriptionBuilder

java.lang.Object
  extended by org.drools.guvnor.server.converters.decisiontable.builders.DefaultDescriptionBuilder
All Implemented Interfaces:
org.drools.decisiontable.parser.SourceBuilder, GuidedDecisionTableSourceBuilder

public class DefaultDescriptionBuilder
extends Object
implements GuidedDecisionTableSourceBuilder

Default description builder for when an explicit column has not been defined in the XLS file. Descriptions are empty Strings.


Constructor Summary
DefaultDescriptionBuilder()
           
 
Method Summary
 void addCellValue(int row, int column, String value)
           
 void addTemplate(int row, int col, String content)
           
 void clearValues()
           
 org.drools.decisiontable.parser.ActionType.Code getActionTypeCode()
           
 String getResult()
           
 boolean hasValues()
           
 void populateDecisionTable(GuidedDecisionTable52 dtable)
          Populate the given Decision Table with details of the parsed column.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDescriptionBuilder

public DefaultDescriptionBuilder()
Method Detail

getActionTypeCode

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

populateDecisionTable

public void populateDecisionTable(GuidedDecisionTable52 dtable)
Description copied from interface: GuidedDecisionTableSourceBuilder
Populate the given Decision Table with details of the parsed column. Actions should include adding applicable columns and data to the underlying model.

Specified by:
populateDecisionTable in interface GuidedDecisionTableSourceBuilder

addCellValue

public void addCellValue(int row,
                         int column,
                         String value)
Specified by:
addCellValue 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

addTemplate

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


Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.