org.drools.ide.common.client.modeldriven.dt
Class GuidedDecisionTable

java.lang.Object
  extended by org.drools.ide.common.client.modeldriven.dt.GuidedDecisionTable
All Implemented Interfaces:
Serializable, PortableObject

Deprecated.

@Deprecated
public class GuidedDecisionTable
extends Object
implements PortableObject

This is a decision table model for a guided editor. It is not template or XLS based. (template could be done relatively easily by taking a template, as a String, and then String[][] data and driving the SheetListener interface in the decision tables module). This works by taking the column definitions, and combining them with the table of data to produce rule models.

See Also:
Serialized Form

Field Summary
 List<ActionCol> actionCols
          Deprecated.  
 List<AttributeCol> attributeCols
          Deprecated.  
 List<ConditionCol> conditionCols
          Deprecated.  
 String[][] data
          Deprecated. First column is always row number.
 int descriptionWidth
          Deprecated. The width to display the description column.
 String groupField
          Deprecated.  
static int INTERNAL_ELEMENTS
          Deprecated. Number of internal elements before ( used for offsets in serialization )
 String parentName
          Deprecated.  
 String tableName
          Deprecated. The name - obviously.
 
Constructor Summary
GuidedDecisionTable()
          Deprecated.  
 
Method Summary
 int getMetadataColIndex(String attributeName)
          Deprecated. Locate index of attribute name if it exists
 List<MetadataCol> getMetadataCols()
          Deprecated.  
 String getType(DTColumnConfig col, SuggestionCompletionEngine sce)
          Deprecated.  
 String[] getValueList(DTColumnConfig col, SuggestionCompletionEngine sce)
          Deprecated. This will return a list of valid values. if there is no such "enumeration" of values, then it will return an empty array.
 boolean isNumeric(DTColumnConfig col, SuggestionCompletionEngine sce)
          Deprecated.  
 void setMetadataCols(List<MetadataCol> metadataCols)
          Deprecated.  
 boolean updateMetadata(String attributeName, String newValue)
          Deprecated. Update all rows of metadata with value it attribute is present
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INTERNAL_ELEMENTS

public static final int INTERNAL_ELEMENTS
Deprecated. 
Number of internal elements before ( used for offsets in serialization )

See Also:
Constant Field Values

tableName

public String tableName
Deprecated. 
The name - obviously.


parentName

public String parentName
Deprecated. 

attributeCols

public List<AttributeCol> attributeCols
Deprecated. 

conditionCols

public List<ConditionCol> conditionCols
Deprecated. 

actionCols

public List<ActionCol> actionCols
Deprecated. 

data

public String[][] data
Deprecated. 
First column is always row number. Second column is description. Subsequent ones follow the above column definitions: attributeCols, then conditionCols, then actionCols, in that order, left to right.


descriptionWidth

public int descriptionWidth
Deprecated. 
The width to display the description column.


groupField

public String groupField
Deprecated. 
Constructor Detail

GuidedDecisionTable

public GuidedDecisionTable()
Deprecated. 
Method Detail

getValueList

public String[] getValueList(DTColumnConfig col,
                             SuggestionCompletionEngine sce)
Deprecated. 
This will return a list of valid values. if there is no such "enumeration" of values, then it will return an empty array.


getType

public String getType(DTColumnConfig col,
                      SuggestionCompletionEngine sce)
Deprecated. 

isNumeric

public boolean isNumeric(DTColumnConfig col,
                         SuggestionCompletionEngine sce)
Deprecated. 

setMetadataCols

public void setMetadataCols(List<MetadataCol> metadataCols)
Deprecated. 

getMetadataCols

public List<MetadataCol> getMetadataCols()
Deprecated. 

getMetadataColIndex

public int getMetadataColIndex(String attributeName)
Deprecated. 
Locate index of attribute name if it exists

Parameters:
attributeName - Name of metadata we are looking for
Returns:
index of attribute name or -1 if not found

updateMetadata

public boolean updateMetadata(String attributeName,
                              String newValue)
Deprecated. 
Update all rows of metadata with value it attribute is present

Parameters:
attributeName - Name of metadata we are looking for
Returns:
true if values update, false if not


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