public synchronized void registerValidatorModule ( IValidatorModule theValidator ) { Validate . notNull ( theValidator , "theValidator must not be null" ) ; ArrayList < IValidatorModule > newValidators = new ArrayList < IValidatorModule > ( myValidators . size ( ) + 1 ) ; newValidators . addAll ( myValidators ) ; newValidators . add ( theValidator ) ; myValidators = newValidators ; }
Add a new validator module to this validator . You may register as many modules as you like at any time .