Class TemplateModel
- java.lang.Object
-
- org.drools.workbench.models.datamodel.rule.RuleModel
-
- org.drools.workbench.models.guided.template.shared.TemplateModel
-
- All Implemented Interfaces:
org.kie.soup.project.datamodel.imports.HasImports,org.kie.soup.project.datamodel.packages.HasPackageName
public class TemplateModel extends org.drools.workbench.models.datamodel.rule.RuleModel
-
-
Field Summary
Fields Modifier and Type Field Description static StringID_COLUMN_NAME
-
Constructor Summary
Constructors Constructor Description TemplateModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringaddRow(int index, String[] row)Add a row of data at the specified indexStringaddRow(String[] row)voidclearRows()intgetColsCount()org.drools.workbench.models.datamodel.rule.InterpolationVariable[]getInterpolationVariablesList()intgetRowsCount()Map<String,List<String>>getTable()String[][]getTableAsArray()voidputInSync()voidremoveRow(int row)booleanremoveRowById(String rowId)voidsetIdCol(int idCol)voidsetValue(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, equals, getAllLHSVariables, getAllRHSVariables, getAllVariables, getBoundVariablesInScope, getFieldBinding, getFieldBinding, getImports, getLHSBindingType, getLHSBoundFact, getLHSBoundFacts, getLHSBoundField, getLHSParentFactPatternForBinding, getLHSPatternVariables, getLHSVariables, getMetaData, getPackageName, getRHSBoundFact, getRHSBoundFacts, hasDSLSentences, hashCode, isBoundFactUsed, isNegated, isVariableNameUsed, moveLhsItemDown, moveLhsItemUp, moveRhsItemDown, moveRhsItemUp, removeAttribute, removeLhsItem, removeMetadata, removeRhsItem, setImports, setNegated, setPackageName, updateMetadata
-
-
-
-
Field Detail
-
ID_COLUMN_NAME
public static final String ID_COLUMN_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
addRow
public String addRow(int index, String[] row)
Add a row of data at the specified index- Parameters:
index-row-- Returns:
-
clearRows
public void clearRows()
-
getColsCount
public int getColsCount()
-
getInterpolationVariablesList
public org.drools.workbench.models.datamodel.rule.InterpolationVariable[] getInterpolationVariablesList()
-
getRowsCount
public int getRowsCount()
-
getTableAsArray
public String[][] getTableAsArray()
-
putInSync
public void putInSync()
-
removeRow
public void removeRow(int row)
-
removeRowById
public boolean removeRowById(String rowId)
-
setIdCol
public void setIdCol(int idCol)
-
-