Package java.util

Examples of java.util.Map.containsValue()


        String serviceNameSpace = orderEndpoint.getInterfaceName().getNamespaceURI();
        String modelNameSpace = "http://model.complex.test";

        // The WSDL should import the namespaces for the service and the model
        assertTrue("Namespace " + serviceNameSpace + " present", namespaces.containsValue(serviceNameSpace));
        assertTrue("Namespace " + modelNameSpace + " present", namespaces.containsValue(modelNameSpace));

        Iterator<Schema> schemaIt = definition.getTypes().getExtensibilityElements().iterator();

        List<String> schemaTargetNameSpaceList = new ArrayList<String>();
View Full Code Here


        String serviceNameSpace = orderEndpoint.getInterfaceName().getNamespaceURI();
        String modelNameSpace = "http://model.complex.test";

        // The WSDL should import the namespaces for the service and the model
        assertTrue("Namespace " + serviceNameSpace + " present", namespaces.containsValue(serviceNameSpace));
        assertTrue("Namespace " + modelNameSpace + " present", namespaces.containsValue(modelNameSpace));

        Iterator<Schema> schemaIt = definition.getTypes().getExtensibilityElements().iterator();

        List<String> schemaTargetNameSpaceList = new ArrayList<String>();
        while (schemaIt.hasNext()) {
View Full Code Here

        else {
            // NOTE:  I thought I could have simply done:
            // if (def.getMessage(message.getQName()) != null)
            // but that method traces through all imported messages.
            Map messages = def.getMessages();
            if (messages.containsValue(message)) {
                entry.setIsReferenced(true);
            }
        }

        // Set all the message's types
View Full Code Here

        else {
            // NOTE:  I thought I could have simply done:
            // if (def.getPortType(portType.getQName()) != null)
            // but that method traces through all imported portTypes.
            Map portTypes = def.getPortTypes();
            if (portTypes.containsValue(portType)) {
                entry.setIsReferenced(true);
            }
        }

        // Set all the portType's messages
View Full Code Here

            else {
                // NOTE:  I thought I could have simply done:
                // if (def.getBindng(binding.getQName()) != null)
                // but that method traces through all imported bindings.
                Map bindings = def.getBindings();
                if (bindings.containsValue(binding)) {
                    entry.setIsReferenced(true);
                }
            }

            // Set all the binding's portTypes
View Full Code Here

        else {
            // NOTE:  I thought I could have simply done:
            // if (def.getService(service.getQName()) != null)
            // but that method traces through all imported services.
            Map services = def.getServices();
            if (services.containsValue(service)) {
                entry.setIsReferenced(true);
            }
        }

        // Set all the service's bindings
View Full Code Here

        } catch (IllegalArgumentException e) {
            // expected
        }

        assertTrue(!map.containsKey(new Integer(3)));
        assertTrue(!map.containsValue(new Integer(3)));

        Map map2 = new HashMap();
        map2.put("A", "a");
        map2.put("B", "b");
        map2.put("C", "c");
View Full Code Here

        assertTrue(keys.contains("one"));
        assertTrue(keys.contains("two"));
        assertTrue(keys.contains(null));
        assertTrue(keys.contains(Integer.toString(20)));
        assertTrue(keys.size() == 4);
        assertTrue(!caseInsensitiveMap.containsValue("One")
            || !caseInsensitiveMap.containsValue("Three")); // ones collaped
        assertEquals(caseInsensitiveMap.get(null), "Four");
    }

    public void testClone() {
View Full Code Here

        assertTrue(keys.contains("two"));
        assertTrue(keys.contains(null));
        assertTrue(keys.contains(Integer.toString(20)));
        assertTrue(keys.size() == 4);
        assertTrue(!caseInsensitiveMap.containsValue("One")
            || !caseInsensitiveMap.containsValue("Three")); // ones collaped
        assertEquals(caseInsensitiveMap.get(null), "Four");
    }

    public void testClone() {
        CaseInsensitiveMap map = new CaseInsensitiveMap(10);
View Full Code Here

    public String getAsText() {
        Map map = (Map) getValue();
        if (!(map instanceof Properties)) {
            Properties p = new Properties();
            if(map != null) {
                if(!map.containsKey(null) && !map.containsValue(null)) {
                    p.putAll(map);
                } else {
                    // Map contains null keys or values.  Replace null with empty string.
                    log.warn("Map contains null keys or values.  Replacing null values with empty string.");
                    for(Iterator itr = map.entrySet().iterator(); itr.hasNext(); ) {
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.