Drools Workbench - Guided Decision Table Model 6.2.0.CR1

org.drools.workbench.models.guided.dtable.shared.model
Class BRLRuleModel

java.lang.Object
  extended by org.drools.workbench.models.datamodel.rule.RuleModel
      extended by org.drools.workbench.models.guided.dtable.shared.model.BRLRuleModel
All Implemented Interfaces:
HasImports, HasPackageName

public class BRLRuleModel
extends RuleModel

A RuleModel that can provide details of bound Facts and Fields from an associated Decision Table. This allows columns using BRL fragments to integrate with Decision Table columns


Field Summary
 
Fields inherited from class org.drools.workbench.models.datamodel.rule.RuleModel
attributes, lhs, metadataList, modelVersion, name, parentName, rhs
 
Constructor Summary
BRLRuleModel()
           
BRLRuleModel(GuidedDecisionTable52 dtable)
           
 
Method Summary
 List<String> getAllLHSVariables()
           
 List<String> getAllRHSVariables()
           
 List<String> getAllVariables()
           
 List<String> getBoundVariablesInScope(BaseSingleFieldConstraint con)
           
 String getLHSBindingType(String var)
           
 FactPattern getLHSBoundFact(String var)
           
 List<String> getLHSBoundFacts()
           
 SingleFieldConstraint getLHSBoundField(String var)
           
 FactPattern getLHSParentFactPatternForBinding(String var)
           
 ActionInsertFact getRHSBoundFact(String var)
           
 List<String> getRHSBoundFacts()
           
 boolean isBoundFactUsed(String binding)
           
 boolean isVariableNameUsed(String s)
           
 
Methods inherited from class org.drools.workbench.models.datamodel.rule.RuleModel
addAttribute, addLhsItem, addLhsItem, addLhsItem, addMetadata, addRhsItem, addRhsItem, addRhsItem, getFieldBinding, getFieldBinding, getImports, getMetaData, getPackageName, hasDSLSentences, isNegated, moveLhsItemDown, moveLhsItemUp, moveRhsItemDown, moveRhsItemUp, removeAttribute, removeLhsItem, removeMetadata, removeRhsItem, setImports, setNegated, setPackageName, updateMetadata
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BRLRuleModel

public BRLRuleModel()

BRLRuleModel

public BRLRuleModel(GuidedDecisionTable52 dtable)
Method Detail

getLHSBoundFacts

public List<String> getLHSBoundFacts()
Overrides:
getLHSBoundFacts in class RuleModel

getLHSBoundFact

public FactPattern getLHSBoundFact(String var)
Overrides:
getLHSBoundFact in class RuleModel

getLHSBoundField

public SingleFieldConstraint getLHSBoundField(String var)
Overrides:
getLHSBoundField in class RuleModel

getLHSBindingType

public String getLHSBindingType(String var)
Overrides:
getLHSBindingType in class RuleModel

getLHSParentFactPatternForBinding

public FactPattern getLHSParentFactPatternForBinding(String var)
Overrides:
getLHSParentFactPatternForBinding in class RuleModel

getAllVariables

public List<String> getAllVariables()
Overrides:
getAllVariables in class RuleModel

getAllLHSVariables

public List<String> getAllLHSVariables()
Overrides:
getAllLHSVariables in class RuleModel

getAllRHSVariables

public List<String> getAllRHSVariables()
Overrides:
getAllRHSVariables in class RuleModel

isBoundFactUsed

public boolean isBoundFactUsed(String binding)
Overrides:
isBoundFactUsed in class RuleModel

getBoundVariablesInScope

public List<String> getBoundVariablesInScope(BaseSingleFieldConstraint con)
Overrides:
getBoundVariablesInScope in class RuleModel

isVariableNameUsed

public boolean isVariableNameUsed(String s)
Overrides:
isVariableNameUsed in class RuleModel

getRHSBoundFacts

public List<String> getRHSBoundFacts()
Overrides:
getRHSBoundFacts in class RuleModel

getRHSBoundFact

public ActionInsertFact getRHSBoundFact(String var)
Overrides:
getRHSBoundFact in class RuleModel

Drools Workbench - Guided Decision Table Model 6.2.0.CR1

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