Class LinkedValidatorFactory

java.lang.Object
com.aquima.interactions.portal.model.factory.LinkedValidatorFactory
All Implemented Interfaces:
IValidatorFactory

public final class LinkedValidatorFactory extends Object implements IValidatorFactory
Validator factory implementation that combines two validator factories.
Since:
7.1
Author:
O. Kerpershoek
  • Method Details

    • createFor

      public static IValidatorFactory createFor(IValidatorFactory factory, IValidatorFactory defaultFactory)
      This method returns a rule factory implementation that combines both the rule factories that are passed to this method.
      Parameters:
      factory - The rule factory that should be used first when requesting a custom rule (optional).
      defaultFactory - The rule factory that should be used when the first did not supply a rule implementation (mandatory).
      Returns:
      a rule factory implementation that combines both the rule factories that are passed to this method.
    • getValidator

      public IValidator getValidator(String name)
      Description copied from interface: IValidatorFactory
      This method should create and return a new validator instance.
      Specified by:
      getValidator in interface IValidatorFactory
      Parameters:
      name - The name of the validator type for which an implementation is requested.
      Returns:
      Validator implementation for the specified definition.