Class RuleVisitor

java.lang.Object
com.aquima.interactions.rule.graph.RuleVisitor
All Implemented Interfaces:
IRuleVisitor
Direct Known Subclasses:
ConstraintVisitor, InferenceRuleVisitor, ValidationRuleVisitor

public abstract class RuleVisitor extends Object implements IRuleVisitor
Base class for rule visitors that are used during initialization to add business rules to the rule graph.
Since:
5.0
Author:
O. Kerpershoek
  • Constructor Details

  • Method Details

    • getMetaModel

      public IMetaModel getMetaModel()
      Description copied from interface: IRuleVisitor
      This method returns the meta model of the rule engine.
      Specified by:
      getMetaModel in interface IRuleVisitor
      Returns:
      the meta model of the rule engine.
    • getProject

      public IProject getProject()
    • getConnectionManager

      public IConnectionManager getConnectionManager()
    • getParser

      public IParserFactory getParser()
      Description copied from interface: IRuleVisitor
      This method returns the expression parser of the rule engine which may be used to parse expressions and dynamic texts.
      Specified by:
      getParser in interface IRuleVisitor
      Returns:
      the expression parser of the rule engine.
    • isR4Parser

      protected boolean isR4Parser()
      This method returns a boolean indicating if a R4 compatible parser is used. The R4 compatible flag will influence the way decision table conditions are 'fixed'.
      Returns:
      a boolean indicating if a R4 compatible parser is used.
    • isR4IgnoreScope

      protected boolean isR4IgnoreScope()
    • isSingletonOrNamed

      protected boolean isSingletonOrNamed(String entityName)
    • validateSourceScopeObjects

      protected AttributeNode[] validateSourceScopeObjects(IBusinessRule rule, AttributeNode[] targets)
    • validateTargetAttributes

      protected AttributeNode[] validateTargetAttributes(IBusinessRule rule, String[] attributes)
    • validateRuleGroups

      protected void validateRuleGroups(IBusinessRule rule)