Class 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 String ID_COLUMN_NAME  
      • Fields inherited from class org.drools.workbench.models.datamodel.rule.RuleModel

        attributes, DEFAULT_TYPE, lhs, metadataList, modelVersion, name, parentName, rhs
    • Constructor Summary

      Constructors 
      Constructor Description
      TemplateModel()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String addRow​(int index, String[] row)
      Add a row of data at the specified index
      String addRow​(String[] row)  
      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, 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
    • Constructor Detail

      • TemplateModel

        public TemplateModel()
    • 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)
      • setValue

        public void setValue​(String varName,
                             int rowIndex,
                             String newValue)
      • setIdCol

        public void setIdCol​(int idCol)