private GeneralValidator < DPO , RI , RO , RHI > build ( ) { // Create validator GeneralValidator < DPO , RI , RO , RHI > validator = new GeneralValidator < DPO , RI , RO , RHI > ( ) ; // Add triggers for ( Trigger trigger : addedTriggers ) { validator . addTrigger ( trigger ) ; } // Add data providers for ( DataProvider < DPO > dataProvider : addedDataProviders ) { validator . addDataProvider ( dataProvider ) ; } // Map data providers output to rules input validator . setDataProviderToRuleMappingStrategy ( dataProviderToRuleMapping ) ; validator . setRuleInputTransformers ( addedRuleInputTransformers ) ; // Add rules for ( Rule < RI , RO > rule : addedRules ) { validator . addRule ( rule ) ; } // Map rules output to result handlers input validator . setRuleToResultHandlerMappingStrategy ( ruleToResultHandlerMapping ) ; validator . setResultHandlerInputTransformers ( addedResultHandlerInputTransformers ) ; // Add result handlers for ( ResultHandler < RHI > resultHandler : addedResultHandlers ) { validator . addResultHandler ( resultHandler ) ; } return validator ; }
Builds the validator .