Examples of ErrorLocatorImpl


Examples of org.apache.woden.internal.ErrorLocatorImpl

  protected boolean testAssertionBindingFaultReference1059(BindingFaultReference bindingFaultReference, ErrorReporter errorReporter) throws WSDLException
  {
  InterfaceFaultReference interfaceFaultReference = bindingFaultReference.getInterfaceFaultReference();
  if(interfaceFaultReference == null)
  {
    errorReporter.reportError(new ErrorLocatorImpl(), "BindingFaultReference-1059", new Object[]{}, ErrorReporter.SEVERITY_ERROR);
      return false;
  }
  return true;
  }
View Full Code Here

Examples of org.apache.woden.internal.ErrorLocatorImpl

    QName name = services[i].getName();
      if(name == null)
        continue;
    if(names.contains(name))
    {
    errorReporter.reportError(new ErrorLocatorImpl(), "Service-1060", new Object[]{name}, ErrorReporter.SEVERITY_ERROR);
    return false;
    }
    else
    {
    names.add(name);
View Full Code Here

Examples of org.apache.woden.internal.ErrorLocatorImpl

  protected boolean testAssertionEndpoint1061(Endpoint endpoint, ErrorReporter errorReporter) throws WSDLException
  {
  URI address = endpoint.getAddress();
    if(address != null && !address.isAbsolute())
    {
      errorReporter.reportError(new ErrorLocatorImpl(), "Endpoint-1061", new Object[]{address}, ErrorReporter.SEVERITY_ERROR);
    return false;
    }
    return true;
  }
View Full Code Here

Examples of org.apache.woden.internal.ErrorLocatorImpl

   
    // If an interface hasn't been specified on the service this assertion doesn't apply.
    // If the binding interface is null this assertion passes.
    if(serviceInterface != null && bindingInterface != null && !serviceInterface.equals(bindingInterface))
    {
    errorReporter.reportError(new ErrorLocatorImpl(), "Endpoint-1062", new Object[]{binding, bindingInterface, serviceInterface}, ErrorReporter.SEVERITY_ERROR);
    return false
    }
  }
  return true;
  }
View Full Code Here

Examples of org.apache.woden.internal.ErrorLocatorImpl

      }
    } catch (Exception e) {
      // fall through
    }
    // Even numbers and exceptions are treated as errors
    getErrorReporter().reportError(new ErrorLocatorImpl(), // TODO line&col nos.
        "FOO-001", new Object[] { attrValue },
        ErrorReporter.SEVERITY_ERROR);
    return result;
  }
View Full Code Here

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

 
  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
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.