Examples of NCName


Examples of org.apache.woden.types.NCName

        }

        String msgLabel = faultRefEl.getAttributeValue(Constants.ATTR_MESSAGE_LABEL);
        if(msgLabel != null)
        {
            faultRef.setMessageLabel(new NCName(msgLabel));
        }
        else
        {
            //This is a limited solution supporting the 3 MEPs in the Part 2 spec.
            //TODO generic support for user-defined, extensible MEPs.
View Full Code Here

Examples of org.apache.woden.types.NCName

        }

        String msgLabel = msgRefEl.getAttributeValue(Constants.ATTR_MESSAGE_LABEL);
        if(msgLabel != null)
        {
            message.setMessageLabel(new NCName(msgLabel));
        }
        else
        {
            //This is a limited solution supporting the 3 MEPs in the Part 2 spec.
            //TODO generic support for user-defined, extensible MEPs.
View Full Code Here

Examples of org.apache.woden.types.NCName

        ServiceElement service = desc.addServiceElement();

        String name = serviceEl.getAttributeValue(Constants.ATTR_NAME);
        if(name != null)
        {
            service.setName(new NCName(name));
        }

        QName intfaceQN = null;
        String intface = serviceEl.getAttributeValue(Constants.ATTR_INTERFACE);
        if(intface != null)
View Full Code Here

Examples of org.apache.woden.types.NCName

        EndpointElement endpoint = parent.addEndpointElement();

        String name = endpointEl.getAttributeValue(Constants.ATTR_NAME);
        if(name != null)
        {
            endpoint.setName(new NCName(name));
        }

        QName bindingQN = null;
        String binding = endpointEl.getAttributeValue(Constants.ATTR_BINDING);
        if(binding != null)
View Full Code Here

Examples of org.apache.woden.types.NCName

            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);
                        if(fRef.equals(intFaultName) &&
                           effectiveMsgLabel.equals(tempIntFaultRef.getMessageLabel()))
                        {
                            intFaultRef = tempIntFaultRef;
                            break;
                        }
                    }
View Full Code Here

Examples of org.apache.woden.types.NCName

        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

Examples of org.apache.woden.types.NCName

     * @see org.apache.woden.wsdl20.WSDLComponent#getFragmentIdentifier()
     */
    public FragmentIdentifier getFragmentIdentifier() {
        //Find properties needed.
        Binding bindingComp = (Binding)getParent();
        NCName binding = new NCName(bindingComp.getName().getLocalPart());
       
        //Return a new FragmentIdentifier.
        return new FragmentIdentifier(new BindingFaultPart(binding,  fRef));
    }
View Full Code Here

Examples of org.apache.woden.types.NCName

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

Examples of org.apache.woden.types.NCName

        shorthandPointer = emptyNCName;
       
        //Setup prefix/namespace binding context.
        prefixBindingContex = new HashMap();
        namespaceBindingContex = new HashMap();
        addPrefixNamespaceBinding(new NCName("xml"), NS_URI_XML);
    }
View Full Code Here

Examples of org.apache.woden.types.NCName

     * @see org.apache.woden.wsdl20.WSDLComponent#getFragmentIdentifier()
     */
    public FragmentIdentifier getFragmentIdentifier() {
        Service serviceComp = (Service)getParent();
       
        NCName service = new NCName(serviceComp.getName().getLocalPart());
       
        return new FragmentIdentifier(new EndpointPart(service ,fName));
    }
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.