Package org.apache.woden.wsdl20

Examples of org.apache.woden.wsdl20.InterfaceOperation


     */
    public InterfaceMessageReference getInterfaceMessageReference()
    {
        InterfaceMessageReference intMsgRef = null;
        BindingOperation bindOp = (BindingOperation)getParent();
        InterfaceOperation intOp = bindOp.getInterfaceOperation();
        if(intOp != null)
        {
            //Determine the "effective" msg label for this binding msg ref.
            NCName effectiveMsgLabel = null;
            if(fMessageLabel != null)
            {
                effectiveMsgLabel = fMessageLabel;
            }
            else
            {
                //TODO implement placeholder effective msg label, as per Part 1 of spec section 2.10.3
            }
           
            //Now match the effective msg label against the msg label of an interface msg reference.
            if(effectiveMsgLabel != null)
            {
                InterfaceMessageReference[] intMsgRefs = intOp.getInterfaceMessageReferences();
                for(int i=0; i<intMsgRefs.length; i++)
                {
                    if( effectiveMsgLabel.equals(intMsgRefs[i].getMessageLabel()) )
                    {
                        intMsgRef = intMsgRefs[i];
View Full Code Here


     */
    public FragmentIdentifier getFragmentIdentifier() {
        //Find parent components.
        BindingOperation bindingOperationComp = (BindingOperation)getParent();
        Binding bindingComp = (Binding)bindingOperationComp.getParent();
        InterfaceOperation interfaceOperationComp = bindingOperationComp.getInterfaceOperation();
       
        //Get needed properties.
        NCName binding = new NCName(bindingComp.getName().getLocalPart());
        QName interfaceOperation = interfaceOperationComp.getName();
       
        //Return a new FragmentIdentifier.
        return new FragmentIdentifier(new BindingMessageReferencePart(binding, interfaceOperation, fMessageLabel));
    }
View Full Code Here

        InterfaceFaultReference intFaultRef = null;
       
        if(fRef != null) //if 'ref' is null, we cannot match against an interface fault qname.
        {
            BindingOperation bindOp = (BindingOperation)getParent();
            InterfaceOperation intOp = bindOp.getInterfaceOperation();
            if(intOp != null)
            {
                //Determine the "effective" msg label for this binding fault ref.
                NCName effectiveMsgLabel = null;
                if(fMessageLabel != null)
                {
                    effectiveMsgLabel = fMessageLabel;
                }
                else
                {
                    //implement placeholder effective msg label, as per the todo comment above
                }
               
                //Now match the effective msg label against the msg label of an interface fault reference
                //that refers to an interface fault whose qname matches the 'ref' attribute.
                if(effectiveMsgLabel != null)
                {
                    InterfaceFaultReference[] intFaultRefs = intOp.getInterfaceFaultReferences();
                    for(int i=0; i<intFaultRefs.length; i++)
                    {
                        InterfaceFaultReference tempIntFaultRef = intFaultRefs[i];
                        InterfaceFault tempIntFault = tempIntFaultRef.getInterfaceFault();
                        QName intFaultName = (tempIntFault != null ? tempIntFault.getName() : null);
View Full Code Here

     */
    public FragmentIdentifier getFragmentIdentifier() {
        //Find parent components.
        BindingOperation bindingOperationComp = (BindingOperation)getParent();
        Binding bindingComp = (Binding)bindingOperationComp.getParent();
        InterfaceOperation interfaceOperationComp = bindingOperationComp.getInterfaceOperation();
       
        //Get needed properties.
        NCName binding = new NCName(bindingComp.getName().getLocalPart());
        QName interfaceOperation = interfaceOperationComp.getName();
      
        //Return a new Fragment Identifier.
        return new FragmentIdentifier(new BindingFaultReferencePart(binding, interfaceOperation, fMessageLabel, fRef));
    }
View Full Code Here

  protected void validateInterfaceOperations(Interface interfac, InterfaceOperation[] interfaceOperations, ErrorReporter errorReporter) throws WSDLException
  {
  int numInterfaceOperations = interfaceOperations.length;
  for(int j = 0; j < numInterfaceOperations; j++)
  {
      InterfaceOperation interfaceOperation = interfaceOperations[j];
   
      testAssertionMEP1022(interfaceOperation.getMessageExchangePattern(), errorReporter);
   
      validateInterfaceMessageReferences(interfaceOperation.getInterfaceMessageReferences(), errorReporter);
   
      validateInterfaceFaultReferences(interfaceOperation.getInterfaceFaultReferences(), errorReporter);
    }
  }
View Full Code Here

  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

  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

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

    /* (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

    {
        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

TOP

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

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.