Package org.eclipse.wst.wsdl.validation.internal.logging

Examples of org.eclipse.wst.wsdl.validation.internal.logging.ILogger


  /**
   * 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);
  }
View Full Code Here


    {
      String loggerClassString = args[++i];
      try
      {
        Class loggerClass = WSDLValidate.class.getClassLoader().loadClass(loggerClassString);
        ILogger logger = (ILogger)loggerClass.newInstance();
        LoggerFactory.getInstance().setLogger(logger);
      }
      catch(Exception e)
      {
        System.err.println(MessageFormat.format(WSDLValidateTextUIMessages._ERROR_LOADING_LOGGER, new Object[]{loggerClassString}));
View Full Code Here

TOP

Related Classes of org.eclipse.wst.wsdl.validation.internal.logging.ILogger

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.