Examples of ErrorLocatorImpl


Examples of org.apache.woden.internal.ErrorLocatorImpl

  protected boolean testAssertionDescription1006(DescriptionElement descElement, ErrorReporter errorReporter) throws WSDLException
  {
    URI targetNS = descElement.getTargetNamespace();
    if(!targetNS.isAbsolute())
    {
      errorReporter.reportError(new ErrorLocatorImpl(), "Description-1006", new Object[]{targetNS}, ErrorReporter.SEVERITY_ERROR);
      return false;
  }
    return true;
  }
View Full Code Here

Examples of org.apache.woden.internal.ErrorLocatorImpl

    return true;
 
  String targetNS = schemaDef.getTargetNamespace();
  if(targetNS == null || targetNS.equals(""))
  {
    errorReporter.reportError(new ErrorLocatorImpl(), "Schema-1069", new Object[]{schema.getSchemaLocation()}, ErrorReporter.SEVERITY_ERROR);
    return false;
  }
  return true;
  }
View Full Code Here

Examples of org.apache.woden.internal.ErrorLocatorImpl

            throw e2;
        } catch (Exception e) {
          // Any other exception including IOExceptoin, MalformedURLException, UnknownHostException, and
          // FileNotFoundException means that the namespace was not resolvable.
          wodenCtx.getErrorReporter().reportError(
                    new ErrorLocatorImpl(), getId(), new Object[] {tns}, ErrorReporter.SEVERITY_WARNING);
        }
    }
View Full Code Here

Examples of org.apache.woden.internal.ErrorLocatorImpl

 
  String importedSchemaTargetNS = schemaDef.getTargetNamespace();
  String specifiedTargetNS = schema.getNamespace().toString();
  if(specifiedTargetNS != null && !specifiedTargetNS.equals(importedSchemaTargetNS))
  {
    errorReporter.reportError(new ErrorLocatorImpl(), "Schema-1070", new Object[]{specifiedTargetNS}, ErrorReporter.SEVERITY_ERROR);
    return false;
  }
  return true;
  }
View Full Code Here

Examples of org.apache.woden.internal.ErrorLocatorImpl

      while(otherInlineSchemas.hasNext())
      {
      if(((InlinedSchema)otherInlineSchemas.next()).getSchemaDefinition().getElementByName(elementName) != null)
      {
        // Duplicate element defined.
        errorReporter.reportError(new ErrorLocatorImpl(), "Schema-1073", new Object[]{elementName, ns}, ErrorReporter.SEVERITY_ERROR);
        isValid = false;
      }
      }
   
    }
   
    XmlSchemaObjectTable types = iSchema.getSchemaDefinition().getSchemaTypes();
    Iterator typeNames = types.getNames();
    while(typeNames.hasNext())
    {
      QName typeName = (QName)typeNames.next();
      Iterator otherInlineSchemas = schemaList.iterator();
      while(otherInlineSchemas.hasNext())
      {
        if(((InlinedSchema)otherInlineSchemas.next()).getSchemaDefinition().getTypeByName(typeName) != null)
        {
        // Duplicate type defined.
        errorReporter.reportError(new ErrorLocatorImpl(), "Schema-1073b", new Object[]{typeName, ns}, ErrorReporter.SEVERITY_ERROR);
        isValid = false;
        }
      }
     
    }
View Full Code Here

Examples of org.apache.woden.internal.ErrorLocatorImpl

  int numStyleDefaults = styleDefaults.length;
  for(int i = 0; i < numStyleDefaults; i++)
  {
    if(!styleDefaults[i].isAbsolute())
    {
      errorReporter.reportError(new ErrorLocatorImpl(), "Interface-1012", new Object[]{styleDefaults[i].toString()}, ErrorReporter.SEVERITY_ERROR);
      isValid = false;
    }
  }
  return isValid;
  }
View Full Code Here

Examples of org.apache.woden.internal.ErrorLocatorImpl

    String localname = qualifiedName.getLocalPart();     

      TypesElement types = descElement.getTypesElement();
      if(types == null)
      {
      errorReporter.reportError(new ErrorLocatorImpl(), "Schema-1066", new Object[]{localname, namespace}, ErrorReporter.SEVERITY_ERROR);
        return false;
      }
      Schema[] schemas = types.getSchemas();
      int numSchemas = schemas.length;
      boolean schemaNotFound = true;
      // TODO: This linear search should be improved for performance.
      for(int i = 0; i < numSchemas; i++)
      {
      URI schemaNs = schemas[i].getNamespace();
      // If the schema namespace is null continue to the next one. This is not the
      // schema we're looking for.
      if(schemaNs == null)
        continue;
      if(schemaNs.toString().equals(namespace))
      {
          schemaNotFound = false;
        break;
      }
      }
      if(schemaNotFound)
      {
        errorReporter.reportError(new ErrorLocatorImpl(), "Schema-1066", new Object[]{localname, namespace}, ErrorReporter.SEVERITY_ERROR);
        return false;
      }
    }
    return true;
  }
View Full Code Here

Examples of org.apache.woden.internal.ErrorLocatorImpl

  if(ref != null)
  {
    InterfaceFaultElement fault = faultReference.getInterfaceFaultElement();
    if(fault == null)
    {
      errorReporter.reportError(new ErrorLocatorImpl(),
              "QName-resolution-1064",
              new Object[]{ref.toString(), "interface fault reference", "interface fault"},
              ErrorReporter.SEVERITY_ERROR);
      return false;
    }
View Full Code Here

Examples of org.apache.woden.internal.ErrorLocatorImpl

            try {
                QName qname = extEl.getQName(typeQN);
                httpHdr.setTypeName(qname);
            } catch (WSDLException e) {
                extReg.getErrorReporter().reportError(
                        new ErrorLocatorImpl()//TODO line&col nos.
                        "WSDL505",
                        new Object[] {typeQN, extEl.getLocalName()},
                        ErrorReporter.SEVERITY_ERROR);
            }
        }
View Full Code Here

Examples of org.apache.woden.internal.ErrorLocatorImpl

            try {
                uri = new URI(ref);
                soapMod.setRef(uri);
            } catch (URISyntaxException e) {
                extReg.getErrorReporter().reportError(
                        new ErrorLocatorImpl()//TODO line&col nos.
                        "WSDL506",
                        new Object[] {ref},
                        ErrorReporter.SEVERITY_ERROR,
                        e);
            }
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.