Package org.apache.woden.wsdl20

Examples of org.apache.woden.wsdl20.Interface


    /*
     * (non-Javadoc)
     * @see org.apache.woden.wsdl20.WSDLComponent#getFragmentIdentifier()
     */
    public FragmentIdentifier getFragmentIdentifier() {
        Interface interfaceComp = (Interface)getParent();
       
        NCName interfaceName = new NCName(interfaceComp.getName().getLocalPart());
       
        return new FragmentIdentifier(new InterfaceFaultPart(interfaceName, fName));
    }
View Full Code Here


    /*
     * @see org.apache.woden.wsdl20.Interface#getExtendedInterface(javax.xml.namespace.QName)
     */
    public Interface getExtendedInterface(QName qname)
    {
        Interface intface = fDescriptionComponent.getInterface(qname);
        return intface;
    }
View Full Code Here

    {
        List interfaces = new Vector();
        for(Iterator it = fExtends.iterator(); it.hasNext();)
        {
            QName qn = (QName)it.next();
            Interface intface = getExtendedInterface(qn);
            if(intface != null) interfaces.add(intface);
        }
       
        Interface[] array = new Interface[interfaces.size()];
        interfaces.toArray(array);
View Full Code Here

       
        if(!(comp instanceof Interface)) {
            return false;
        }
       
        Interface other = (Interface)comp;
       
        //compare {name}
        QName myName = getName();
        if(myName != null && !myName.equals(other.getName())) return false;
       
        /* To compare {extended interfaces} we cannot just retrieve and compare the two sets
         * of extended Interface components because we'd enter a recursive loop. To get the
         * extended interfaces (i.e. to resolve the qnames in the 'extends' attribute)
         * we need to get the set of interfaces available to the Description, which in turn
View Full Code Here

    /* (non-Javadoc)
     * @see org.apache.woden.wsdl20.Binding#getInterface()
     */
    public Interface getInterface()
    {
        Interface interfac = fDescriptionComponent.getInterface(fInterfaceName);
        return interfac;
    }
View Full Code Here

  testAssertionInterface1010(interfaces, errorReporter);
   
  int numInterfaces = interfaces.length;
  for(int i = 0; i < numInterfaces; i++)
  {
      Interface interfac = interfaces[i];
     
    testAssertionInterface1009(interfac, errorReporter);
   
    validateInterfaceOperations(interfac, interfac.getInterfaceOperations(), errorReporter);
  }
  }
View Full Code Here

   * @throws WSDLException
   */
  protected boolean testAssertionInterface1009(Interface interfac, ErrorReporter errorReporter) throws WSDLException
  {
  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

   */
  protected boolean testAssertionBinding1044(Binding binding, ErrorReporter errorReporter) throws WSDLException
  {
  BindingOperation[] bindingOperations = binding.getBindingOperations();
  BindingFault[] bindingFaults = binding.getBindingFaults();
  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);
View Full Code Here

  {
  boolean allInterfaceOperationsHaveBinding = true;
    QName bindingQN = binding.getName();
  String bindingName = bindingQN != null ? bindingQN.getLocalPart() : null;
 
  Interface interfac = binding.getInterface();
  if(interfac == null)
    return true;
 
  BindingOperation[] bindingOperations = binding.getBindingOperations();
  int numBindingOperations = bindingOperations.length;
  List usedInterfaceOperationList = new ArrayList();
  for(int i = 0; i < numBindingOperations; i++)
  {
    InterfaceOperation io = bindingOperations[i].getInterfaceOperation();
    if(io != null)
    usedInterfaceOperationList.add(io);
  }
    // Check the interface operations.
  if(!checkAllInterfaceOperationsHaveBinding(bindingName, interfac, usedInterfaceOperationList, errorReporter))
    allInterfaceOperationsHaveBinding = false;
 
  Interface[] extendedInterfaces = interfac.getExtendedInterfaces();
  if(extendedInterfaces != null)
  {
    int numExtendedInterfaces = extendedInterfaces.length;
    for(int i = 0; i < numExtendedInterfaces; i++)
      {
View Full Code Here

  Binding binding = endpoint.getBinding();
  // If no binding has been specified this assertion does not apply.
  if(binding == null)
    return true;
 
  Interface bindingInterface = binding.getInterface();
  WSDLComponent parent = endpoint.getParent();
  if(parent != null)
  {
    Service service = (Service)parent;
    Interface serviceInterface = service.getInterface();
   
    // 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
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.woden.wsdl20.Interface

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.