Package org.apache.woden.internal

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


  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

  {
  Interface[] extendedInterfaces = interfac.getExtendedInterfaces();
  Interface extendedInterface = containsInterface(interfac, extendedInterfaces);
  if(extendedInterface != null)
  {
    errorReporter.reportError(new ErrorLocatorImpl(), "Interface-1009", new Object[]{extendedInterface.getName()}, ErrorReporter.SEVERITY_ERROR);
    return false;
  }
  return true;
  }
View Full Code Here

    QName name = interfaces[i].getName();
      if(name == null)
        continue;
    if(names.contains(name))
    {
    errorReporter.reportError(new ErrorLocatorImpl(), "Interface-1010", new Object[]{name}, ErrorReporter.SEVERITY_ERROR);
    duplicateFound = true;
    }
    else
    {
    names.add(name);
View Full Code Here

   */
  protected boolean testAssertionMEP1022(URI pattern, ErrorReporter errorReporter) throws WSDLException
  {
  if(!pattern.isAbsolute())
  {
    errorReporter.reportError(new ErrorLocatorImpl(), "MEP-1022", new Object[]{pattern}, ErrorReporter.SEVERITY_ERROR);
    return false;
  }
  return true;
  }
View Full Code Here

  {
  String messContentModel = messageReference.getMessageContentModel();
  if((messContentModel.equals(Constants.NMTOKEN_ANY) || messContentModel.equals(Constants.NMTOKEN_NONE))
    && messageReference.getElementDeclaration() != null)
  {
    errorReporter.reportError(new ErrorLocatorImpl(), "InterfaceMessageReference-1028", new Object[]{}, ErrorReporter.SEVERITY_ERROR);
    return false;
  }
  return true;
  }
View Full Code Here

    NCName messageLabel = messageReferences[i].getMessageLabel();
      if(messageLabel == null)
          continue;
    if(messageLabels.contains(messageLabel))
    {
    errorReporter.reportError(new ErrorLocatorImpl(), "InterfaceMessageReference-1029", new Object[]{messageLabel}, ErrorReporter.SEVERITY_ERROR);
    return false;
    }
    else
    {
    messageLabels.add(messageLabel);
View Full Code Here

      if(fault == null || messageLabel == null)
      continue;
    List messageLabels = (List)identifiers.get(fault);
    if(messageLabels != null && messageLabels.contains(messageLabel))
    {
      errorReporter.reportError(new ErrorLocatorImpl(), "InterfaceFaultReference-1039", new Object[]{fault, messageLabel}, ErrorReporter.SEVERITY_ERROR);
    return false;
      }
    else
    {
    if(messageLabels == null)
View Full Code Here

  Interface bindingInterface = binding.getInterface();
  if(((bindingOperations != null && bindingOperations.length > 0) ||
    (bindingFaults != null && bindingFaults.length > 0)) &&
     bindingInterface == null)
  {
    errorReporter.reportError(new ErrorLocatorImpl(), "Binding-1044", new Object[]{}, ErrorReporter.SEVERITY_ERROR);
    return false;
  }
    return true;
  }
View Full Code Here

  // Check the interface operations.
  for(int i = 0; i < numInterfaceOperations; i++)
  {
    if(!usedInterfaceOperations.contains(interfaceOperations[i]))
    {
      errorReporter.reportError(new ErrorLocatorImpl(), "Binding-1045", new Object[]{bindingName, interfaceOperations[i].getName()}, ErrorReporter.SEVERITY_ERROR);
    allInterfaceOperationsHaveBinding = false;
    }
    }
  return allInterfaceOperationsHaveBinding;
  }
View Full Code Here

TOP

Related Classes of org.apache.woden.internal.ErrorLocatorImpl

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.