Examples of InterfaceOperation


Examples of org.apache.woden.wsdl20.InterfaceOperation

  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))
View Full Code Here

Examples of org.apache.woden.wsdl20.InterfaceOperation

  boolean duplicateFound = false;
  List specifiedInterfaceOperations = new ArrayList();
  int numBindingOperations = bindingOperations.length;
  for(int i = 0; i < numBindingOperations; i++)
  {
    InterfaceOperation interfaceOperation = bindingOperations[i].getInterfaceOperation();
    if(interfaceOperation == null)
      continue;
    if(specifiedInterfaceOperations.contains(interfaceOperation))
    {
    errorReporter.reportError(new ErrorLocatorImpl(), "BindingOperation-1051", new Object[]{interfaceOperation.getName()}, ErrorReporter.SEVERITY_ERROR);
    duplicateFound = true;
    }
    else
    {
    specifiedInterfaceOperations.add(interfaceOperation);
View Full Code Here

Examples of org.apache.woden.wsdl20.InterfaceOperation

        // http extension properties
        String methodDef = httpBindExts.getHttpMethodDefault();
        if (methodDef != null) return methodDef;
              
        // 3. try {safety} equals True
        InterfaceOperation intOper = ((BindingOperation) getParent()).getInterfaceOperation();
        if (intOper != null) {
            InterfaceOperationExtensions intOperExts = (InterfaceOperationExtensions) intOper
                    .getComponentExtensionContext(WSDLExtensionConstants.NS_URI_WSDL_EXTENSIONS);
           if (intOperExts != null && intOperExts.isSafe()) {
              return HTTPConstants.METHOD_GET;
           }
        }
View Full Code Here

Examples of org.apache.woden.wsdl20.InterfaceOperation

    /* (non-Javadoc)
     * @see org.apache.woden.wsdl20.BindingOperation#getInterfaceOperation()
     */
    public InterfaceOperation getInterfaceOperation()
    {
        InterfaceOperation oper = null;
        Binding binding = (Binding)getParent();
        Interface interfac = binding.getInterface();
        if(interfac != null) {
            oper = interfac.getFromAllInterfaceOperations(fRef);
        }
View Full Code Here

Examples of org.apache.woden.wsdl20.InterfaceOperation

    {
        InterfaceOperationElement oper = null;
        BindingElement binding = (BindingElement)getParentElement();
        InterfaceElement interfac = binding.getInterfaceElement();
        if(interfac != null) {
            InterfaceOperation operComp = ((Interface)interfac).getFromAllInterfaceOperations(fRef);
            if(operComp != null) {
                oper = operComp.toElement();
            }
        }
        return oper;

    }
View Full Code Here

Examples of org.apache.woden.wsdl20.InterfaceOperation

    public ElementDeclaration getElementDeclaration()
    {
        ElementDeclaration elemDecl = null;
       
        if(fElement != null && fElement.isQName()) {
            InterfaceOperation oper = (InterfaceOperation)getParent();
            Interface interfac = (Interface)oper.getParent();
            Description desc = ((InterfaceImpl)interfac).getDescriptionComponent();
            elemDecl = desc.getElementDeclaration(fElement.getQName());
        }
        return elemDecl;
    }
View Full Code Here

Examples of org.apache.woden.wsdl20.InterfaceOperation

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

Examples of org.apache.woden.wsdl20.InterfaceOperation

    /*
     * @see org.apache.woden.wsdl20.Interface#getFromAllInterfaceOperations(javax.xml.namespace.QName)
     */
    public InterfaceOperation getFromAllInterfaceOperations(QName operName)
    {
        InterfaceOperation theOper = null;
        if(operName != null) {
            InterfaceOperation[] opers = getAllInterfaceOperations();
            for(int i=0; i<opers.length; i++) {
                InterfaceOperation oper = opers[i];
                if(operName.equals(oper.getName())) {
                    theOper = oper;
                    break;
                }
            }
        }
View Full Code Here

Examples of org.apache.woden.wsdl20.InterfaceOperation

        }
       
        //get the declared operations for the specified Interface
        InterfaceOperation[] declaredOpers = interfac.getInterfaceOperations();
        for(int i=0; i<declaredOpers.length; i++) {
            InterfaceOperation oper = declaredOpers[i];
            if(!containsComponent(oper, allOpers)) {
                allOpers.add(oper);
            }
        }
       
View Full Code Here

Examples of org.apache.woden.wsdl20.InterfaceOperation

        BindingOperation[] bindingOperations = binding.getBindingOperations();
        for (int i = 0; i < bindingOperations.length; i++) {
            BindingOperationImpl bindingOperation = (BindingOperationImpl) bindingOperations[i];

            AxisBindingOperation axisBindingOperation = new AxisBindingOperation();
            InterfaceOperation interfaceOperation = serviceInterface.getFromAllInterfaceOperations(bindingOperation.getRef());
            AxisOperation axisOperation =
                    axisService.getOperation(interfaceOperation.getName());

            axisBindingOperation.setAxisOperation(axisOperation);
            axisBindingOperation.setParent(axisBinding);
            axisBindingOperation.setName(axisOperation.getName());
            addDocumentation(axisBindingOperation, bindingOperation.toElement());
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.