Examples of containsKey()


Examples of org.apache.ws.commons.schema.utils.NamespaceMap.containsKey()

                        xmlsNamespaceMap.add(e.getValue(), e.getKey());
                    }
                }

                // tns: is conventional, and besides we have unit tests that are hardcoded to it.
                if (!xmlsNamespaceMap.containsKey(WSDLConstants.CONVENTIONAL_TNS_PREFIX)
                // if some wants something other than TNS, they get it.
                    && !xmlsNamespaceMap.containsValue(entry.getKey())) {
                    xmlsNamespaceMap.add(WSDLConstants.CONVENTIONAL_TNS_PREFIX, entry.getKey());
                }
View Full Code Here

Examples of org.apache.xindice.xml.NamespaceMap.containsKey()

            int colonIndex = prefix.indexOf(":");
            if (colonIndex == -1) {
                nsMap.setDefaultNamespace(uri);
            } else {
                prefix = prefix.substring(colonIndex + 1);
                if (!nsMap.containsKey(prefix)) {
                    nsMap.setNamespace(prefix, uri);
                }
            }
        }
        return nsMap;
View Full Code Here

Examples of org.apache.xmlbeans.impl.common.SequencedHashMap.containsKey()

            URL nextTarget = (URL)result.get(nextSource);
            Map nextResults = findRelativeInOne(nextSource, nextTarget);
            for (Iterator i = nextResults.keySet().iterator(); i.hasNext(); )
            {
                URL newSource = (URL)i.next();
                if (result.containsKey(newSource))
                    continue;
                result.put(newSource, nextResults.get(newSource));
                process.add(newSource);
            }
        }
View Full Code Here

Examples of org.apache.yoko.bindings.corba.CorbaMessage.containsKey()

        EasyMock.expect(msg.getDestination()).andReturn(destination).times(2);       
        EasyMock.expect(destination.getBindingInfo()).andReturn(bInfo);
        EasyMock.expect(bInfo.getService()).andReturn(sInfo);
        EasyMock.expect(dInfo.getExtensors(TypeMappingType.class)).andReturn(null);
        EasyMock.expect(sInfo.getDescription()).andReturn(dInfo);
        EasyMock.expect(msg.containsKey(Message.REQUESTOR_ROLE)).andReturn(true);
       
        inInterceptor.handleRequestMessage(msg, destination);
        EasyMock.expectLastCall();
       
        control.replay();
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.util.HashtableOfObject.containsKey()

          binariesFromIndexMatches.put(documentPath, binaryType);
        }
        binaryType.recordSuperType(record.superSimpleName, record.superQualification, record.superClassOrInterface);
      }
      if (!isLocalOrAnonymous // local or anonymous types cannot have subtypes outside the cu that define them
          && !foundSuperNames.containsKey(typeName)){
        foundSuperNames.put(typeName, typeName);
        queue.add(typeName);
      }
      return true;
    }   
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.util.SimpleLookupTable.containsKey()

        char[][] qName = qNames[j];
        if (!internedQualifiedNames.containsKey(qName)) { // remember the names have been interned
          internedQualifiedNames.put(qName, new Integer(internedQualifiedNames.elementSize));
          for (int k = 0, n = qName.length; k < n; k++) {
            char[] sName = qName[k];
            if (!internedSimpleNames.containsKey(sName)) // remember the names have been interned
              internedSimpleNames.put(sName, new Integer(internedSimpleNames.elementSize));
          }
        }
      }
      char[][] sNames = collection.simpleNameReferences;
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.core.util.HashtableOfArrayToObject.containsKey()

              }
              String[] pkgName = pkgPath.segments();
             
              // if package name is in the cache, then it has already been validated
              // (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=133141)
              if (allPkgFragmentsCache != null && allPkgFragmentsCache.containsKey(pkgName))
                return root.getPackageFragment(pkgName);
             
              if (pkgName.length != 0 && JavaConventions.validatePackageName(Util.packageName(pkgPath, sourceLevel, complianceLevel), sourceLevel, complianceLevel).getSeverity() == IStatus.ERROR) {
                return null;
              }
View Full Code Here

Examples of org.axonframework.cache.NoCache.containsKey()

    @Test
    public void testCacheDoesNothing() throws CacheException {
        // this is pretty stupid, but we're testing that it does absolutely nothing
        NoCache cache = NoCache.INSTANCE;
        cache.registerCacheEntryListener(mock(Cache.EntryListener.class));
        assertFalse(cache.containsKey(new Object()));
        assertNull(cache.get(new Object()));
        cache.put(new Object(), new Object());
        Map<Object, Object> map = new HashMap<Object, Object>();
        map.put(new Object(), new Object());
        assertFalse(cache.remove(new Object()));
View Full Code Here

Examples of org.axonframework.domain.MetaData.containsKey()

            return Collections.emptyMap();
        }
        Map<String, Object> data = new HashMap<String, Object>();
        final MetaData metaData = message.getMetaData();
        for (String headerName : headerNames) {
            if (metaData.containsKey(headerName)) {
                data.put(headerName, metaData.get(headerName));
            }
        }
        return data;
    }
View Full Code Here

Examples of org.broadinstitute.gatk.utils.commandline.Tags.containsKey()

        final Tags tags = rodBinding.getTags();
        final String name = rodBinding.getName();

        // Parse the tags to decide which tracks have which properties
        if( tags != null ) {
            isKnown = tags.containsKey("known") && tags.getValue("known").equals("true");
            isTraining = tags.containsKey("training") && tags.getValue("training").equals("true");
            isAntiTraining = tags.containsKey("bad") && tags.getValue("bad").equals("true");
            isTruth = tags.containsKey("truth") && tags.getValue("truth").equals("true");
            isConsensus = tags.containsKey("consensus") && tags.getValue("consensus").equals("true");
            prior = ( tags.containsKey("prior") ? Double.parseDouble(tags.getValue("prior")) : prior );
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.