Examples of InterfaceElement


Examples of org.apache.woden.wsdl20.xml.InterfaceElement

         * - getAllInterfaceFaults()
         * - getFromAllInterfaceFaults(QName)
         */
       
        // create InterfaceElements and name them
        InterfaceElement ife = fDescriptionElement.addInterfaceElement();
        InterfaceElement xife1 = fDescriptionElement.addInterfaceElement();
        InterfaceElement xife2 = fDescriptionElement.addInterfaceElement();
        ife.setName(new NCName("Interface"));
        xife1.setName(new NCName("extendedI1"));
        xife2.setName(new NCName("extendedI2"));
        ife.addExtendedInterfaceName(new QName("extendedI1"));
        ife.addExtendedInterfaceName(new QName("extendedI2"));
       
        InterfaceFaultElement fault = ife.addInterfaceFaultElement();
        InterfaceFaultElement fault1 = xife1.addInterfaceFaultElement();
        InterfaceFaultElement fault2 = xife2.addInterfaceFaultElement();
        InterfaceFaultElement fault3 = xife2.addInterfaceFaultElement();
       
        fault.setName(new NCName("fault"));
        fault1.setName(new NCName("fault1"));
        fault2.setName(new NCName("fault2"));
        fault3.setName(new NCName("fault3"));
View Full Code Here

Examples of org.apache.woden.wsdl20.xml.InterfaceElement

         * - getAllInterfaceOperations()
         * - getFromAllInterfaceOperations(QName)
         */
       
        // create InterfaceElements and name them
        InterfaceElement ife = fDescriptionElement.addInterfaceElement();
        InterfaceElement xife1 = fDescriptionElement.addInterfaceElement();
        InterfaceElement xife2 = fDescriptionElement.addInterfaceElement();
        ife.setName(new NCName("Interface"));
        xife1.setName(new NCName("extendedI1"));
        xife2.setName(new NCName("extendedI2"));
        ife.addExtendedInterfaceName(new QName("extendedI1"));
        ife.addExtendedInterfaceName(new QName("extendedI2"));
       
        InterfaceOperationElement oper = ife.addInterfaceOperationElement();
        InterfaceOperationElement oper1 = xife1.addInterfaceOperationElement();
        InterfaceOperationElement oper2 = xife1.addInterfaceOperationElement();
        InterfaceOperationElement oper3 = xife2.addInterfaceOperationElement();
       
        oper.setName(new NCName("oper"));
        oper1.setName(new NCName("oper1"));
        oper2.setName(new NCName("oper2"));
        oper3.setName(new NCName("oper3"));
View Full Code Here

Examples of org.apache.woden.wsdl20.xml.InterfaceElement

   
            //Get undefined namespace and prefix.
            assertNull("Null was not returned when a non-existent namespace prefix was given", descriptionElement.getNamespaceURI(nonExistantPrefix));
            assertNull("Null was not returned when a non-existent namespace URI was given", descriptionElement.getNamespacePrefix(nonExistantNamespace));
   
        InterfaceElement interfaceElement = descriptionElement.addInterfaceElement();
        interfaceElement.addNamespace(prefix3, namespace3);
       
            //Get namespace and prefix on description
            uri = interfaceElement.getNamespaceURI(prefix1);
            assertEquals("Retrieved NamespaceURI does not match that set", namespace1, uri);
   
            prefix = interfaceElement.getNamespacePrefix(namespace1);
            assertEquals("Retrieved NamespacePrefix does not match that set", prefix1, prefix);
           
            //Get default namespace on description
            uri = interfaceElement.getNamespaceURI("");
            assertEquals("Default NamespaceURI does not match that set", namespace2, uri);
           
            //Get namespace and prefix on interface
            uri = interfaceElement.getNamespaceURI(prefix3);
            assertEquals("Retrieved NamespaceURI does not match that set", namespace3, uri);
   
            prefix = interfaceElement.getNamespacePrefix(namespace3);
            assertEquals("Retrieved NamespacePrefix does not match that set", prefix3, prefix);
   
            //Get undefined namespace and prefix.
            assertNull("Null was not returned when a non-existent namespace prefix was given", interfaceElement.getNamespaceURI(nonExistantPrefix));
            assertNull("Null was not returned when a non-existent namespace URI was given", interfaceElement.getNamespacePrefix(nonExistantNamespace));
       
        InterfaceFaultElement interfaceFaultElement = interfaceElement.addInterfaceFaultElement();
        interfaceFaultElement.addNamespace(prefix4, namespace4);
       
            //Get namespace and prefix on description
            uri = interfaceFaultElement.getNamespaceURI(prefix1);
            assertEquals("Retrieved NamespaceURI does not match that set", namespace1, uri);
View Full Code Here

Examples of org.apache.woden.wsdl20.xml.InterfaceElement

    // Create the BindingElement<->InterfaceElement->InterfaceOperationElement->InterfaceMessageReferenceElement hierarchy
    BindingElement bindingElement = descriptionElement.addBindingElement();
    bindingElement.setInterfaceName(new QName("interface1"));
   
    InterfaceElement interfaceElement = descriptionElement.addInterfaceElement();
    interfaceElement.setName(new NCName("interface1"));

    InterfaceOperationElement ifopElement = interfaceElement.addInterfaceOperationElement();
    ifopElement.setName(new NCName("operation1"));
    InterfaceMessageReferenceElement ifmrElement = ifopElement.addInterfaceMessageReferenceElement();
    ifmrElement.setMessageLabel(new NCName("MessageRef1MessageLabel"));
       
    // Create the BindingOperationElement->BindingMessageReferenceElement hierarchy
View Full Code Here

Examples of org.apache.woden.wsdl20.xml.InterfaceElement

            fail("Can't instantiate the WSDLFactory object.");
        }

    // Create and name an Interface Element
    DescriptionElement desc = factory.newDescription();
    InterfaceElement interfaceElement = desc.addInterfaceElement();
    interfaceElement.setName(new NCName("interface1"));
   
    // Create a binding from the description 
    fBindingElement = desc.addBindingElement();
    fBindingElement.setName(new NCName("binding1"));
    desc.toComponent();
    Binding binding = desc.toComponent().getBinding(new QName("binding1"));
 
    // getInterface() - interface attribute unspecified, but hierarchy in place:
    retrievedInterface = binding.getInterface();
    assertNull("Retrieved Interface should be null if interface attribute unspecified -", retrievedInterface);
   
    // getInterface() - interface attribute specified, and hierarchy in place:
    // Set the "interface" attribute to reference the new Interface Element
    // (have to recreate whole desc hierarchy as toComponent() will not rerun if already run!)
    desc = factory.newDescription();
    interfaceElement = desc.addInterfaceElement();
    interfaceElement.setName(new NCName("interface1"));
    fBindingElement = desc.addBindingElement();
    fBindingElement.setName(new NCName("binding1"));
    fBindingElement.setInterfaceName(new QName("interface1"));
   
    //fDescriptionElement.toComponent();
View Full Code Here

Examples of org.jboss.as.model.socket.InterfaceElement

    }

    /** {@inheritDoc} */
    @Override
    public ServerElementInterfaceAdd getCompensatingUpdate(ServerElement original) {
        final InterfaceElement networkInterface = original.getInterface(interfaceName);
        if(networkInterface == null) {
            return null;
        }
        return new ServerElementInterfaceAdd(new InterfaceAdd(networkInterface));
    }
View Full Code Here

Examples of org.jboss.as.model.socket.InterfaceElement

    InterfaceElement addInterface(final String name) {
        if(interfaces.containsKey(name)) {
            return null;
        }
        final InterfaceElement networkInterface = new InterfaceElement(name);
        interfaces.put(name, networkInterface);
        return networkInterface;
    }
View Full Code Here

Examples of org.jboss.as.model.socket.InterfaceElement

    }

    /** {@inheritDoc} */
    @Override
    protected void applyUpdate(DomainModel element) throws UpdateFailedException {
        final InterfaceElement networkInterface = element.addInterface(delegate.getName());
        if(networkInterface == null) {
            throw new UpdateFailedException("duplicate interface binding " + delegate.getName());
        }
        delegate.applyUpdate(networkInterface);
    }
View Full Code Here

Examples of org.jboss.as.model.socket.InterfaceElement

        this.delegate = delegate;
    }

    /** {@inheritDoc} */
    protected void applyUpdate(ServerModel element) throws UpdateFailedException {
        final InterfaceElement networkInterface = element.addInterface(delegate.getName());
        if(networkInterface == null) {
            throw new UpdateFailedException("duplicate network interface " + delegate.getName());
        }
        delegate.applyUpdate(networkInterface);
    }
View Full Code Here

Examples of org.jboss.as.model.socket.InterfaceElement

    }

    /** {@inheritDoc} */
    @Override
    public AbstractDomainModelUpdate<?> getCompensatingUpdate(DomainModel original) {
        final InterfaceElement element = original.getInterface(name);
        if(element == null) {
            return null;
        }
        return new DomainInterfaceAdd(new InterfaceAdd(element));
    }
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.