Class DefaultRuleFactory
java.lang.Object
com.aquima.interactions.framework.rule.DefaultRuleFactory
- All Implemented Interfaces:
IRuleFactory
Rule factory implementation that is capable of providing (custom) rule implementations.
- Since:
- 5.0
- Author:
- O. Kerpershoek
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConstraintRule
(IExternalRuleDS ruleDS, IMetaModel model, IExpressionParser parser) This method is used to acquire a custom constraint rule for the definition.getDataRule
(IDataRuleDefinition ruleDefinition, IMetaModel model, IProject project, IExpressionParser parser, IConnectionManager connectionManager) This method is used to acquire a data inference rule implementation.getInferenceRule
(IExternalRuleDS ruleDS, IMetaModel model, IExpressionParser parser) This method is used to acquire a custom inference rule implementation for the definition.toString()
-
Constructor Details
-
DefaultRuleFactory
public DefaultRuleFactory()
-
-
Method Details
-
getConstraintRule
public IConstraint getConstraintRule(IExternalRuleDS ruleDS, IMetaModel model, IExpressionParser parser) Description copied from interface:IRuleFactory
This method is used to acquire a custom constraint rule for the definition.- Specified by:
getConstraintRule
in interfaceIRuleFactory
- Parameters:
ruleDS
- Data source containing the definition of the custom rule.model
- The meta model of the application.parser
- Expression parser that may be used to construct the custom constraint rule.- Returns:
- Rule implementation, or null when no rule is available matching the definition.
-
getInferenceRule
public IInferenceRule getInferenceRule(IExternalRuleDS ruleDS, IMetaModel model, IExpressionParser parser) Description copied from interface:IRuleFactory
This method is used to acquire a custom inference rule implementation for the definition.- Specified by:
getInferenceRule
in interfaceIRuleFactory
- Parameters:
ruleDS
- Data source containing the definition of the custom rule.model
- The meta model of the application.parser
- Expression parser that may be used to construct the custom inference rule.- Returns:
- Rule implementation, or null when no rule is available matching the definition.
-
getDataRule
public IInferenceRule getDataRule(IDataRuleDefinition ruleDefinition, IMetaModel model, IProject project, IExpressionParser parser, IConnectionManager connectionManager) Description copied from interface:IRuleFactory
This method is used to acquire a data inference rule implementation.- Specified by:
getDataRule
in interfaceIRuleFactory
- Parameters:
ruleDefinition
- the definition of the data rule.model
- The meta model of the application.project
- The project definitions of the application.parser
- Expression parser that may be used to construct the data inference rule.connectionManager
- The connection manager that may be used to construct the data inference rule.- Returns:
- Rule implementation, or null when no rule is available matching the definition.
-
toString
-