Class DefaultRuleFactory

java.lang.Object
com.aquima.interactions.framework.rule.DefaultRuleFactory
All Implemented Interfaces:
IRuleFactory

public class DefaultRuleFactory extends Object implements IRuleFactory
Rule factory implementation that is capable of providing (custom) rule implementations.
Since:
5.0
Author:
O. Kerpershoek
  • 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 interface IRuleFactory
      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 interface IRuleFactory
      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 interface IRuleFactory
      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

      public String toString()
      Overrides:
      toString in class Object