Class LinkedValidatorFactory
java.lang.Object
com.aquima.interactions.portal.model.factory.LinkedValidatorFactory
- All Implemented Interfaces:
IValidatorFactory
Validator factory implementation that combines two validator factories.
- Since:
- 7.1
- Author:
- O. Kerpershoek
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.getValidator
(String name) This method should create and return a new validator instance.
-
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
Description copied from interface:IValidatorFactory
This method should create and return a new validator instance.- Specified by:
getValidator
in interfaceIValidatorFactory
- Parameters:
name
- The name of the validator type for which an implementation is requested.- Returns:
- Validator implementation for the specified definition.
-