Examples of IValidationReport


Examples of org.eclipse.wst.wsdl.validation.internal.IValidationReport

 
  WSDLValidationConfiguration configuration = new WSDLValidationConfiguration();
  configuration.setProperty(Constants.XMLSCHEMA_CACHE_ATTRIBUTE, xsdGrammarPool);
    configuration.setProperty(Constants.XML_CACHE_ATTRIBUTE, xmlGrammarPool);

  IValidationReport valreport = null;
  if (inputstream != null)
  {
    valreport = validator.validate(uri, inputstream, configuration);
  }
  else
View Full Code Here

Examples of org.eclipse.wst.wsdl.validation.internal.IValidationReport

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

Examples of org.eclipse.wst.wsdl.validation.internal.IValidationReport

      // Do nothing. The WSDL validator will handle the error.
      //LoggerFactory.getInstance().getLogger().log(MessageFormat.format(WSDLValidateTextUIMessages._ERROR_UNABLE_TO_READ_FILE, new Object[]{filename}), ILogger.SEV_ERROR);
    }
   
    // Run validation on the file.
    IValidationReport valReport = wsdlValidator.validate(filelocation, null, configuration);
    return valReport;
  }
View Full Code Here

Examples of org.eclipse.wst.wsdl.validation.internal.IValidationReport

      try
      {
        result.append(infoDelim).append("\n");
        result.append(messGen.getString(_UI_ACTION_VALIDATING_FILE, filename)).append(" - ");

        IValidationReport valReport = wsdlValidator.validate(filename, null, configuration);

        IValidationMessage[] messages = valReport.getValidationMessages();

        if (!valReport.hasErrors())
        {
          result.append(valid);
        }
        else
        {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.