org.drools.guvnor.client.decisiontable.widget
Class DTCellValueUtilities

java.lang.Object
  extended by org.drools.guvnor.client.decisiontable.widget.DTCellValueUtilities

public class DTCellValueUtilities
extends Object

Utilities relating to the use of DTCellValue's


Field Summary
protected static DateConverter DATE_CONVERTOR
           
 
Constructor Summary
DTCellValueUtilities(GuidedDecisionTable52 model, SuggestionCompletionEngine sce)
           
 
Method Summary
 void assertDTCellValue(DTDataTypes52 dataType, DTCellValue52 dcv)
          The column-data type is looked up from the SuggestionCompletionEngine and represents the *true* data-type that the column represents.
 String asString(DTCellValue52 dcv)
          Convert a DTCellValue52 to it's String representation
 DTDataTypes52 getDataType(BaseColumn column)
          Get the Data Type corresponding to a given column.
 DTDataTypes52 getDataType(Pattern52 pattern, ActionSetFieldCol52 action)
          Get the Data Type corresponding to a given column
 DTDataTypes52 getDataType(Pattern52 pattern, ConditionCol52 condition)
          Get the Data Type corresponding to a given column
static void injectDateConvertor(DateConverter dc)
          Override the default, GWT-centric, Date conversion utility class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATE_CONVERTOR

protected static DateConverter DATE_CONVERTOR
Constructor Detail

DTCellValueUtilities

public DTCellValueUtilities(GuidedDecisionTable52 model,
                            SuggestionCompletionEngine sce)
Method Detail

injectDateConvertor

public static void injectDateConvertor(DateConverter dc)
Override the default, GWT-centric, Date conversion utility class. Only use to hook-in a JVM Compatible implementation for tests

Parameters:
dc -

getDataType

public DTDataTypes52 getDataType(BaseColumn column)
Get the Data Type corresponding to a given column. If the column is a ConditonCol52 and it is not associated with a Pattern52 in the decision table (e.g. it has been cloned) the overloaded method getDataType(Pattern52, ConditionCol52) should be used.

Parameters:
column -
Returns:

getDataType

public DTDataTypes52 getDataType(Pattern52 pattern,
                                 ConditionCol52 condition)
Get the Data Type corresponding to a given column

Parameters:
Pattern52 -
ConditionCol52 -
Returns:

getDataType

public DTDataTypes52 getDataType(Pattern52 pattern,
                                 ActionSetFieldCol52 action)
Get the Data Type corresponding to a given column

Parameters:
Pattern52 -
ActionSetFieldCol52 -
Returns:

assertDTCellValue

public void assertDTCellValue(DTDataTypes52 dataType,
                              DTCellValue52 dcv)
The column-data type is looked up from the SuggestionCompletionEngine and represents the *true* data-type that the column represents. The data-type associated with the Cell Value can be incorrect for legacy models. For pre-5.2 they will always be String and for pre-5.4 numerical fields are always Numeric

Parameters:
dataType -
dcv -

asString

public String asString(DTCellValue52 dcv)
Convert a DTCellValue52 to it's String representation

Parameters:
dcv -
Returns:


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