Drools Workbench - Guided Rule Templates Model 6.1.0.Beta1

org.drools.workbench.models.guided.template.shared
Class TemplateModel

java.lang.Object
  extended by org.drools.workbench.models.datamodel.rule.RuleModel
      extended by org.drools.workbench.models.guided.template.shared.TemplateModel
All Implemented Interfaces:
org.drools.workbench.models.datamodel.imports.HasImports, org.drools.workbench.models.datamodel.packages.HasPackageName

public class TemplateModel
extends org.drools.workbench.models.datamodel.rule.RuleModel


Field Summary
static String ID_COLUMN_NAME
           
 
Fields inherited from class org.drools.workbench.models.datamodel.rule.RuleModel
attributes, lhs, metadataList, modelVersion, name, parentName, rhs
 
Constructor Summary
TemplateModel()
           
 
Method Summary
 String addRow(int index, String[] row)
          Add a row of data at the specified index
 String addRow(String[] row)
           
 String addRow(String rowId, String[] row)
          Append a row of data
 void clearRows()
           
 int getColsCount()
           
 org.drools.workbench.models.datamodel.rule.InterpolationVariable[] getInterpolationVariablesList()
           
 int getRowsCount()
           
 Map<String,List<String>> getTable()
           
 String[][] getTableAsArray()
           
 void putInSync()
           
 void removeRow(int row)
           
 boolean removeRowById(String rowId)
           
 void setIdCol(int idCol)
           
 void setValue(String varName, int rowIndex, String newValue)
           
 
Methods inherited from class org.drools.workbench.models.datamodel.rule.RuleModel
addAttribute, addLhsItem, addLhsItem, addLhsItem, addMetadata, addRhsItem, addRhsItem, addRhsItem, getAllLHSVariables, getAllRHSVariables, getAllVariables, getBoundVariablesInScope, getFieldBinding, getFieldBinding, getImports, getLHSBindingType, getLHSBoundFact, getLHSBoundFacts, getLHSBoundField, getLHSParentFactPatternForBinding, getMetaData, getPackageName, getRHSBoundFact, getRHSBoundFacts, hasDSLSentences, isBoundFactUsed, isNegated, isVariableNameUsed, moveLhsItemDown, moveLhsItemUp, moveRhsItemDown, moveRhsItemUp, removeAttribute, removeLhsItem, removeMetadata, removeRhsItem, setImports, setNegated, setPackageName, updateMetadata
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID_COLUMN_NAME

public static final String ID_COLUMN_NAME
See Also:
Constant Field Values
Constructor Detail

TemplateModel

public TemplateModel()
Method Detail

addRow

public String addRow(String rowId,
                     String[] row)
Append a row of data

Parameters:
rowId -
row -
Returns:

addRow

public String addRow(int index,
                     String[] row)
Add a row of data at the specified index

Parameters:
index -
row -
Returns:

addRow

public String addRow(String[] row)

clearRows

public void clearRows()

getColsCount

public int getColsCount()

getInterpolationVariablesList

public org.drools.workbench.models.datamodel.rule.InterpolationVariable[] getInterpolationVariablesList()

getRowsCount

public int getRowsCount()

getTable

public Map<String,List<String>> getTable()

getTableAsArray

public String[][] getTableAsArray()

putInSync

public void putInSync()

removeRow

public void removeRow(int row)

removeRowById

public boolean removeRowById(String rowId)

setValue

public void setValue(String varName,
                     int rowIndex,
                     String newValue)

setIdCol

public void setIdCol(int idCol)

Drools Workbench - Guided Rule Templates Model 6.1.0.Beta1

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