public void validate(Set setData) throws ValidationException {
  for (Iterator iter=setData.iterator(); iter.hasNext(); ) {
    performValidation((String)iter.next());
  }
}

public void validate ( Set setData ) throws ValidationException { for ( Iterator iter = setData . iterator ( ) ; iter . hasNext ( ) ; ) { performValidation ( ( String ) iter . next ( ) ) ; } }
performs validation on a set of string .
