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

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


            validator.validate(doc, info);
            log.trace("Finished invoking WSI Validate method on WSDL");
            if (!validator.isValid()) {
                validationFailed = true;
            }
            IValidationMessage messages[] = info.getValidationMessages();
            if (messages != null && messages.length > 0) {
                log.trace("Finished retrieving " + messages.length + " validation messages");
                for (int i = 0; i < messages.length; i++) {
                    IValidationMessage message = messages[i];
                    errorMesage.add(message.getMessage());
                }
                log.trace("Finished building error message list");
            }
        } catch (WSIException e) {
            String message = e.getMessage();
View Full Code Here


                wsiValidationInfo.setStatus(INVALID);
            } else {
                wsiValidationInfo.setStatus(VALID);
            }
            for (int i = 0; i < messages.length; i++) {
                IValidationMessage message = messages[i];
                wsiValidationInfo.addValidationMessage(message.getMessage());
            }

            return new WSDLValidationInfo[]{wsdlValidationInfo, wsiValidationInfo};

        } finally {
View Full Code Here

      // ERROR 1:1 Error message content
      int numMessages = messages.length;
      String marker = null;
      for (int i = 0; i < numMessages; i++)
      {
        IValidationMessage message = messages[i];
        int severity = message.getSeverity();
        if (severity == IValidationMessage.SEV_ERROR)
        {
          marker = WSDLValidateTextUIMessages._UI_ERROR_MARKER;
        }
        else if (severity == IValidationMessage.SEV_WARNING)
        {
          marker = WSDLValidateTextUIMessages._UI_WARNING_MARKER;
        }
        else
        {
          marker = STRING_EMPTY;
        }
        outputBuffer
          .append(marker)
          .append(STRING_SPACE)
          .append(message.getLine())
          .append(":")
          .append(message.getColumn())
          .append(STRING_SPACE)
          .append(message.getMessage());
        if(i != numMessages -1)
        {
          outputBuffer.append("\n");
        }
      }
View Full Code Here

    String prefix = null;
    int numMessages = messages.length;
    for(int i = 0; i < numMessages; i++)
    {
      IValidationMessage message = messages[i];

      if(message.getSeverity() == IValidationMessage.SEV_ERROR)
       {
        prefix = errormarker;
      }
      else if(message.getSeverity() == IValidationMessage.SEV_WARNING)
       {
        prefix = warningmarker;
      }
      else
       {
        prefix = "";
      }if(message.getSeverity() == IValidationMessage.SEV_ERROR)
       {
        prefix = errormarker;
      }
      else if(message.getSeverity() == IValidationMessage.SEV_WARNING)
       {
        prefix = warningmarker;
      }
      else
       {
        prefix = "";
      }if(message.getSeverity() == IValidationMessage.SEV_ERROR)
       {
        prefix = errormarker;
      }
      else if(message.getSeverity() == IValidationMessage.SEV_WARNING)
       {
        prefix = warningmarker;
      }
      else
       {
        prefix = "";
      }if(message.getSeverity() == IValidationMessage.SEV_ERROR)
       {
        prefix = errormarker;
      }
      else if(message.getSeverity() == IValidationMessage.SEV_WARNING)
       {
        prefix = warningmarker;
      }
      else
       {
        prefix = "";
      }
      returnBuffer
        .append(prefix)
        .append(" ")
        .append(message.getLine())
        .append(":")
        .append(message.getColumn())
        .append(":")
        .append(message.getMessage())
        .append("\n");
    }
    return returnBuffer.toString();
  }
View Full Code Here

      // temp handling of XML errors until validator is updated.
      List errors = xmlValidator.getErrors();
      Iterator errorsIter = errors.iterator();
      while (errorsIter.hasNext())
      {
        IValidationMessage valMes = (IValidationMessage)errorsIter.next();
        valinfo.addError(valMes.getMessage(), valMes.getLine(), valMes.getColumn(), valMes.getURI());
      }
      importInvalid = true;
      return false;
    }
    return true;
View Full Code Here

TOP

Related Classes of org.eclipse.wst.wsdl.validation.internal.IValidationMessage

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.