This interface represents a validation rule that will validate a target bean. @author Steven Devijver @since 23-04-2005
55565758596061626364
tmpTarget = new BeanWrapperImpl(target); } else { tmpTarget = target; } for (Iterator iter = rules.iterator(); iter.hasNext();) { ValidationRule rule = (ValidationRule) iter.next(); rule.validate(tmpTarget, errors); } return !errors.hasErrors(); }
188189190191192193194195196
} } } for (Iterator iter = rules.iterator(); iter.hasNext();) { ValidationRule rule = (ValidationRule) iter.next(); rule.validate(beanWrapper, errors); } }
74757677787980818283