Package net.paoding.rose.mock.controllers.methodparameter

Examples of net.paoding.rose.mock.controllers.methodparameter.MethodParameter2Controller$Interface


       
        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


       
        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

  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.isEquivalentTo(bindingInterface))
    {
    errorReporter.reportError(new ErrorLocatorImpl(), "Endpoint-1062", new Object[]{binding, bindingInterface, serviceInterface}, ErrorReporter.SEVERITY_ERROR);
    return false
    }
  }
View Full Code Here

     * @see org.apache.woden.wsdl20.Service#getInterface()
     */
    public Interface getInterface()
    {
        Description desc = fDescriptionComponent;
        Interface interfac = desc.getInterface(fInterfaceName);
        return interfac;
    }
View Full Code Here

  /* (non-Javadoc)
   * @see org.apache.woden.wsdl20.validation.Assertion#validate(java.lang.Object, org.apache.woden.wsdl20.validation.WodenContext)
   */
  public void validate(Object target, WodenContext wodenCtx) throws WSDLException {
    Interface interfac = (Interface)target;
    Interface[] extendedInterfaces = interfac.getExtendedInterfaces();
    if(containsInterface(interfac, extendedInterfaces)) {
      try {
        wodenCtx.getErrorReporter().reportError(new ErrorLocatorImpl(), ID , new Object[]{interfac.getName()}, ErrorReporter.SEVERITY_ERROR);
      }catch(WSDLException e) {
        //TODO: Log problem reporting error.
      }
    }
  }
View Full Code Here

        List allInterfaces = new Vector();
       
        //declared interfaces
        for(Iterator i=fInterfaceElements.iterator(); i.hasNext(); )
        {
            Interface intface = (Interface)i.next();
            if(!containsComponent(intface, allInterfaces)) {
                ((InterfaceImpl)intface).setDescriptionComponent(this);
                allInterfaces.add(intface);
            }
        }
       
        //nested interfaces
        List nestedDescs = new Vector(getNestedDescriptions());
        for(Iterator i=nestedDescs.iterator(); i.hasNext(); )
        {
            DescriptionElement desc = (DescriptionElement)i.next();
            InterfaceElement[] interfaces = desc.getInterfaceElements();
            for(int j=0; j<interfaces.length; j++)
            {
                Interface intface = (Interface)interfaces[j];
                if(!containsComponent(intface, allInterfaces)) {
                    ((InterfaceImpl)intface).setDescriptionComponent(this);
                    allInterfaces.add(intface);
                }
            }
View Full Code Here

TOP

Related Classes of net.paoding.rose.mock.controllers.methodparameter.MethodParameter2Controller$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.