Ejemplo n.º 1
0
 @Override
 public boolean evaluate(Map<String, String> bindings) {
   // NTS: What do we do when NOT has more than one child? I just and the
   // not's together right now
   boolean evaluation = true;
   List<IValidation> validationChildren = getValidationChildren();
   for (IValidation validation : validationChildren) {
     evaluation = evaluation && !validation.evaluate(bindings);
   }
   return evaluation;
 }
Ejemplo n.º 2
0
 @Override
 public void validate(IUser user) throws ValidationException {
   IValidation validateName = new ValidationName();
   IValidation validateEmail = new ValidationEmail();
   IValidation validatePass = new ValidationPass();
   validateName.validate(user);
   validateEmail.validate(user);
   validatePass.validate(user);
 }