/**
* Validate the files specified.
*/
protected void validate()
{
ILogger logger = LoggerFactory.getInstance().getLogger();
int numInvalid = 0;
Iterator filesIter = wsdlFiles.iterator();
while (filesIter.hasNext())
{
String wsdlFile = (String)filesIter.next();
IValidationReport valReport = validateFile(wsdlFile);
if(valReport.hasErrors())
{
numInvalid++;
logger.log(MessageFormat.format(WSDLValidateTextUIMessages._UI_FILE_INVALID, new Object[]{wsdlFile}), ILogger.SEV_INFO);
//logger.log(WSDLValidateTextUIMessages._UI_INFORMATION_DELIMITER, ILogger.SEV_ERROR);
logger.log(getMessages(valReport.getValidationMessages()), ILogger.SEV_INFO);
}
else if(verbose)
{
logger.log(MessageFormat.format(WSDLValidateTextUIMessages._UI_FILE_VALID, new Object[]{wsdlFile}), ILogger.SEV_VERBOSE);
}
}
// Log the summary.
logger.log(MessageFormat.format(WSDLValidateTextUIMessages._UI_VALIDATION_SUMMARY, new Object[]{new Integer(wsdlFiles.size()), new Integer(numInvalid)}), ILogger.SEV_INFO);
}