public class TemplateModel
extends org.drools.workbench.models.datamodel.rule.RuleModel
Modifier and Type | Field and Description |
---|---|
static String |
ID_COLUMN_NAME |
Constructor and Description |
---|
TemplateModel() |
Modifier and Type | Method and Description |
---|---|
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) |
addAttribute, addLhsItem, addLhsItem, addLhsItem, addMetadata, addRhsItem, addRhsItem, addRhsItem, equals, getAllLHSVariables, getAllRHSVariables, getAllVariables, getBoundVariablesInScope, getFieldBinding, getFieldBinding, getImports, getLHSBindingType, getLHSBoundFact, getLHSBoundFacts, getLHSBoundField, getLHSParentFactPatternForBinding, getMetaData, getPackageName, getRHSBoundFact, getRHSBoundFacts, hasDSLSentences, hashCode, isBoundFactUsed, isNegated, isVariableNameUsed, moveLhsItemDown, moveLhsItemUp, moveRhsItemDown, moveRhsItemUp, removeAttribute, removeLhsItem, removeMetadata, removeRhsItem, setImports, setNegated, setPackageName, updateMetadata
public static final String ID_COLUMN_NAME
public String addRow(String rowId, String[] row)
rowId
- row
- public String addRow(int index, String[] row)
index
- row
- public void clearRows()
public int getColsCount()
public org.drools.workbench.models.datamodel.rule.InterpolationVariable[] getInterpolationVariablesList()
public int getRowsCount()
public String[][] getTableAsArray()
public void putInSync()
public void removeRow(int row)
public boolean removeRowById(String rowId)
public void setIdCol(int idCol)
Copyright © 2001–2017 JBoss by Red Hat. All rights reserved.