org.drools.ide.common.client.modeldriven.dt
Class TemplateModel

java.lang.Object
  extended by org.drools.ide.common.client.modeldriven.brl.RuleModel
      extended by org.drools.ide.common.client.modeldriven.dt.TemplateModel
All Implemented Interfaces:
Serializable, PortableObject

public class TemplateModel
extends RuleModel
implements PortableObject

See Also:
Serialized Form

Nested Class Summary
static class TemplateModel.InterpolationVariable
          Template interpolation variable including data-type, Fact Type and Fact Field
static class TemplateModel.RuleModelVisitor
           
 
Field Summary
static String ID_COLUMN_NAME
           
 
Fields inherited from class org.drools.ide.common.client.modeldriven.brl.RuleModel
attributes, lhs, metadataList, modelVersion, name, parentName, rhs
 
Constructor Summary
TemplateModel()
           
 
Method Summary
 String addRow(String[] row)
           
 String addRow(String rowId, String[] row)
           
 void clearRows()
           
 int getColsCount()
           
 TemplateModel.InterpolationVariable[] getInterpolationVariablesList()
           
 int getRowsCount()
           
 Map<String,List<String>> getTable()
           
 String[][] getTableAsArray()
           
 void putInSync()
           
 void removeRow(int row)
           
 boolean removeRowById(String rowId)
           
 void setValue(String varName, int rowIndex, String newValue)
           
 
Methods inherited from class org.drools.ide.common.client.modeldriven.brl.RuleModel
addAttribute, addLhsItem, addLhsItem, addLhsItem, addMetadata, addRhsItem, addRhsItem, addRhsItem, getAllLHSVariables, getAllRHSVariables, getAllVariables, getBoundVariablesInScope, 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)

addRow

public String addRow(String[] row)

clearRows

public void clearRows()

getColsCount

public int getColsCount()

getInterpolationVariablesList

public TemplateModel.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)


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