Drools Guvnor - Guided Rule Templates Model 6.0.0.Alpha9

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

java.lang.Object
  extended by org.drools.guvnor.models.commons.shared.rule.RuleModel
      extended by org.drools.guvnor.models.guided.template.shared.TemplateModel

public class TemplateModel
extends RuleModel


Field Summary
static String ID_COLUMN_NAME
           
 
Fields inherited from class org.drools.guvnor.models.commons.shared.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()
           
 Imports getImports()
           
 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.guvnor.models.commons.shared.rule.RuleModel
addAttribute, addLhsItem, addLhsItem, addLhsItem, addMetadata, addRhsItem, addRhsItem, addRhsItem, getAllLHSVariables, getAllRHSVariables, getAllVariables, getBoundVariablesInScope, getFieldBinding, getFieldBinding, getLHSBindingType, getLHSBoundFact, getLHSBoundFacts, getLHSBoundField, getLHSParentFactPatternForBinding, getMetaData, getRHSBoundFact, getRHSBoundFacts, hasDSLSentences, isBoundFactUsed, isNegated, isVariableNameUsed, moveLhsItemDown, moveLhsItemUp, moveRhsItemDown, moveRhsItemUp, removeAttribute, removeLhsItem, removeMetadata, removeRhsItem, setNegated, 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 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)

getImports

public Imports getImports()
Overrides:
getImports in class RuleModel

Drools Guvnor - Guided Rule Templates Model 6.0.0.Alpha9

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