Class RuleVisitor
java.lang.Object
com.aquima.interactions.rule.graph.RuleVisitor
- All Implemented Interfaces:
IRuleVisitor
- Direct Known Subclasses:
ConstraintVisitor
,InferenceRuleVisitor
,ValidationRuleVisitor
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 Summary
ModifierConstructorDescriptionprotected
RuleVisitor
(RuleGraph graph, IConnectionManager connectionManager, IMetaModel model, IProject project, IParserFactory parser) -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the meta model of the rule engine.This method returns the expression parser of the rule engine which may be used to parse expressions and dynamic texts.protected boolean
protected boolean
This method returns a boolean indicating if a R4 compatible parser is used.protected boolean
isSingletonOrNamed
(String entityName) protected void
protected AttributeNode[]
validateSourceScopeObjects
(IBusinessRule rule, AttributeNode[] targets) protected AttributeNode[]
validateTargetAttributes
(IBusinessRule rule, String[] attributes)
-
Constructor Details
-
RuleVisitor
protected RuleVisitor(RuleGraph graph, IConnectionManager connectionManager, IMetaModel model, IProject project, IParserFactory parser)
-
-
Method Details
-
getMetaModel
Description copied from interface:IRuleVisitor
This method returns the meta model of the rule engine.- Specified by:
getMetaModel
in interfaceIRuleVisitor
- Returns:
- the meta model of the rule engine.
-
getProject
-
getConnectionManager
-
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 interfaceIRuleVisitor
- 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
-
validateSourceScopeObjects
-
validateTargetAttributes
-
validateRuleGroups
-