Examples of BindingType


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

            for (Iterator extIter = extElements.iterator(); extIter.hasNext();) {
                Object element = extIter.next();

                // Find a binding type so we can check against its repository ID
                if (element instanceof BindingType) {
                    BindingType type = (BindingType)element;
                    if (obj._is_a(type.getRepositoryID())) {
                        return b;
                    }
                }
            }
        }
View Full Code Here

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

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

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

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

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

           
            for (Iterator extIter = extElements.iterator(); extIter.hasNext();) {
                java.lang.Object element = extIter.next();
               
                if (element instanceof BindingType) {
                    BindingType bt = (BindingType)element;
                    if (bt.getRepositoryID().equals(repositoryID)) {
                        return b.getQName();   
                    }
                }
            }
        }
View Full Code Here

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

        destination = dest;
        incomingObserver = observer;
      
        // Get the list of interfaces that this servant will support
        try {               
            BindingType bindType = destination.getBindingInfo().getExtensor(BindingType.class);           
            if (bindType == null) {
                throw new CorbaBindingException("Unable to determine corba 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) {
            LOG.log(Level.SEVERE, "Couldn't initialize the corba DSI servant");
View Full Code Here

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

        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

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

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:BasePortType:1.0");
            }
        }
       
        Iterator j = binding.getBindingOperations().iterator();
        while (j.hasNext()) {           
View Full Code Here

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

        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

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:X:1.0");
                }
            }

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

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