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

Examples of org.eclipse.wst.wsdl.validation.internal.util.ErrorMessage


    String uri = error.getLiteralSystemId();
    if(uri == null)
    {
      uri = error.getPublicId();
    }
    ErrorMessage errorMessage = new ErrorMessage();
    errorMessage.setErrorLine(error.getLineNumber());
    errorMessage.setErrorMessage(error.getMessage());
    errorMessage.setErrorColumn(error.getColumnNumber());
    errorMessage.setURI(uri);
    errorMessage.setSeverity(severity);
    return errorMessage;
  }
View Full Code Here


    if (!schemav.isValid())
    {
      Iterator errors = schemav.getErrors().iterator();
      while (errors.hasNext())
      {
        ErrorMessage err = (ErrorMessage) errors.next();
        String uri = err.getURI();
        int line = err.getErrorLine();
        String errmess = err.getErrorMessage();
        errmess = replaceNamespace(errmess, namespace);
        int severity = err.getSeverity();
        if(line > 0)
        {
          if(uri == null || uri.equals(valInfo.getFileURI()))
          {
            Object objectAtLine = getObjectAtLine(line - 1, elements);
            if (severity == DOMError.SEVERITY_WARNING)
            {
              valInfo.addWarning(errmess, objectAtLine);
            }
            else
            {
              valInfo.addError(errmess, objectAtLine);
            }
          }
      else if(!inlineEntityResolver.isInlineSchema(uri) && !uri.equals(valInfo.getFileURI() + InlineXSDResolver.INLINE_SCHEMA_ID))
          {
            int errorColumn = err.getErrorColumn();
            if (severity == DOMError.SEVERITY_WARNING)
            {
              valInfo.addWarning(errmess, line, errorColumn, uri);
            }
            else
View Full Code Here

//        importDef,
//        messagegenerator.getString("_UNABLE_TO_IMPORT_INVALID", "'" + importDef.getLocationURI() + "'"));
      Iterator errors = xsdvalidator.getErrors().iterator();
      while (errors.hasNext())
      {
        ErrorMessage err = (ErrorMessage) errors.next();
        String uri = err.getURI();
        int line = err.getErrorLine();
        String errmess = err.getErrorMessage();
        valinfo.addError(errmess, line, err.getErrorColumn(), uri);
      }
    }
    importingWSDLDoc.addSchemas(schemas);
    return importDef;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.wst.wsdl.validation.internal.util.ErrorMessage

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.