Package org.apache.schemas.yoko.bindings.corba

Examples of org.apache.schemas.yoko.bindings.corba.BindingType


       
        Iterator i = binding.getExtensibilityElements().iterator();
        while (i.hasNext()) {    
            ExtensibilityElement extElement = (ExtensibilityElement)i.next();
            if (extElement.getElementType().getLocalPart().equals("binding")) {
                BindingType bindingType = (BindingType)extElement;
                assertEquals(bindingType.getRepositoryID(), "IDL:TestException/ExceptionTest:1.0");
            }
        }       
        Iterator j = binding.getBindingOperations().iterator();
        while (j.hasNext()) {           
            BindingOperation bindingOperation = (BindingOperation)j.next();
View Full Code Here


       
        Iterator i = binding.getExtensibilityElements().iterator();
        while (i.hasNext()) {    
            ExtensibilityElement extElement = (ExtensibilityElement)i.next();
            if (extElement.getElementType().getLocalPart().equals("binding")) {
                BindingType bindingType = (BindingType)extElement;
                assertEquals(bindingType.getRepositoryID(), "IDL:BasePortType:1.0");
            }
        }
       
        Iterator j = binding.getBindingOperations().iterator();
        while (j.hasNext()) {           
View Full Code Here

        assertEquals(32, binding.getBindingOperations().size());
       
        List extElements = binding.getExtensibilityElements();            
        ExtensibilityElement extElement = (ExtensibilityElement)extElements.get(0);
        if (extElement.getElementType().getLocalPart().equals("binding")) {
            BindingType bindingType = (BindingType)extElement;
            assertEquals(bindingType.getRepositoryID(), "IDL:Test/MultiPart:1.0");
        }       
       
        getStringAttributeTest(binding);
        getTestIdTest(binding);
        setTestIdTest(binding);
View Full Code Here

            Iterator i = binding.getExtensibilityElements().iterator();
            while (i.hasNext()) {
                ExtensibilityElement extElement = (ExtensibilityElement)i.next();
                if (extElement.getElementType().getLocalPart().equals("binding")) {
                    BindingType bindingType = (BindingType)extElement;
                    assertEquals(bindingType.getRepositoryID(), "IDL:X:1.0");
                }
            }

            Iterator j = binding.getBindingOperations().iterator();
            while (j.hasNext()) {
View Full Code Here

        CorbaBindingFactory corbaBF = new CorbaBindingFactory();
        corbaBF.init(bus);
        manager.registerBinding(CorbaConstants.NU_WSDL_CORBA, corbaBF);
       
        EndpointReferenceType endpoint = testUtils.getSimpleTestEndpointReference();
        BindingType binding = CorbaUtils.getCorbaBindingType(bus, endpoint);
        assertNotNull(binding);
    }
View Full Code Here

        Binding binding = definition.createBinding();
        binding.setPortType(portType);
        binding.setQName(bqname);

        try {
            BindingType bindingType = (BindingType)
                extReg.createExtension(Binding.class, CorbaConstants.NE_CORBA_BINDING);
            bindingType.setRepositoryID(CorbaConstants.REPO_STRING
                                        + portType.getQName().getLocalPart().replace('.', '/')
                                        + CorbaConstants.IDL_VERSION);
            binding.addExtensibilityElement(bindingType);
        } catch (WSDLException ex) {
            throw new RuntimeException(ex);
View Full Code Here

        binding.setPortType(portType);
        binding.setQName(bqname);

        bindingNames.add(bname);
        mapBindingToInterface(portType.getQName().getLocalPart(), bname);
        BindingType bindingType = null;
       
        addCorbaTypes(def);
       
        try {
            bindingType = (BindingType)extReg
                .createExtension(Binding.class, CorbaConstants.NE_CORBA_BINDING);
            bindingType.setRepositoryID(repoString
                                        + binding.getPortType().getQName().getLocalPart().replace('.', '/')
                                        + idlversion);

            binding.addExtensibilityElement(bindingType);
        } catch (WSDLException ex) {
View Full Code Here

        serverBinding = binding;
        sbeCallback = epCallback;

        // Get the list of interfaces that this servant will support
        try {
            BindingType bindType = CorbaUtils.getCorbaBindingType(binding.getBus(),
                                                                  binding.getEndpointReference());
            if (bindType == null) {
                throw new CorbaBindingException("Unable to determine binding information");
            }

            List<String> bases = bindType.getBases();
            interfaces = new ArrayList<String>();
            interfaces.add(bindType.getRepositoryID());
            for (Iterator<String> iter = bases.iterator(); iter.hasNext();) {
                interfaces.add(iter.next());
            }
        } catch (java.lang.Exception ex) {
            // TODO: For now, this exception is consumed. Revisit this to see if
View Full Code Here

    public ExtensibilityElement unmarshall(Class parentType, QName elementType,
            Element el, Definition def, ExtensionRegistry extReg)
        throws WSDLException {

        BindingType bindType = new BindingType();
        bindType.setElementType(elementType);

        // Store the repository ids of the interface and bases
        NamedNodeMap bindAttributes = el.getAttributes();
        for (int i = 0; i < bindAttributes.getLength(); ++i) {
            if (bindAttributes.item(i).getNodeName().equals("repositoryID")) {
                bindType.setRepositoryID(bindAttributes.item(i).getNodeValue());
            } else if (bindAttributes.item(i).getNodeName().equals("bases")) {
                String allBases = bindAttributes.item(i).getNodeValue();
                String[] bases = allBases.split(" ");
                for (int j = 0; j < bases.length; ++j) {
                    bindType.getBases().add(bases[j]);
                }
            }
        }

        return bindType;
View Full Code Here

       
        return addrType;
    }
   
    public static BindingType getCorbaBindingType(Bus bus, EndpointReferenceType endpointRef) {
        BindingType bindType = null;
        try {
            Port wsdlPort = EndpointReferenceUtils.getPort(bus.getWSDLManager(), endpointRef);
            Binding wsdlBinding = wsdlPort.getBinding();
           
            List extElements = wsdlBinding.getExtensibilityElements();
View Full Code Here

TOP

Related Classes of org.apache.schemas.yoko.bindings.corba.BindingType

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.