Examples of containsKey()


Examples of org.springframework.core.annotation.AnnotationAttributes.containsKey()

        annotationType.getName(), false));
    Assert.notNull(attributes, String.format("@%s is not present on importing class '%s' as expected",
        annotationType.getSimpleName(), importingClassMetadata.getClassName()));

    String[] imports;
    if (attributes.containsKey("modular") && attributes.getBoolean("modular")) {
      imports = new String[] { ModularBatchConfiguration.class.getName() };
    }
    else {
      imports = new String[] { SimpleBatchConfiguration.class.getName() };
    }
View Full Code Here

Examples of org.springframework.http.HttpHeaders.containsKey()

  @Override
  protected ResponseEntity<OAuth2Exception> enhanceResponse(ResponseEntity<OAuth2Exception> response, Exception exception) {
    HttpHeaders headers = response.getHeaders();
    String existing = null;
    if (headers.containsKey("WWW-Authenticate")) {
      existing = extractTypePrefix(headers.getFirst("WWW-Authenticate"));
    }
    StringBuilder builder = new StringBuilder();
    builder.append(typeName+" ");
    builder.append("realm=\"" + realmName + "\"");
View Full Code Here

Examples of org.springframework.messaging.MessageHeaders.containsKey()

        }

        for (Entry<String, String> matchEntry : matchingHeaders.entrySet()) {
            String namePart = matchEntry.getKey();
           
            if (!messageHeaders.containsKey(namePart) && !citrusMessageHeaders.containsKey(namePart)) {
                return false;
            }

            if (citrusMessageHeaders.containsKey(namePart) && !citrusMessageHeaders.get(namePart).equals(matchEntry.getValue())) {
                return false;
View Full Code Here

Examples of org.springframework.osgi.util.internal.MapBasedDictionary.containsKey()

    Dictionary dict = new Properties();
    dict.put("joe", "satriani");

    MapBasedDictionary wrapper = new MapBasedDictionary();
    wrapper.putAll(dict);
    assertTrue(wrapper.containsKey("joe"));
  }

  public void testValue() throws Exception {
    Dictionary dict = new Properties();
    dict.put("joe", "satriani");
View Full Code Here

Examples of org.springframework.ui.ExtendedModelMap.containsKey()

    assertEquals("foo", request.getJobName());
    // Job, JobInstances, jobParameters, JobExecution, total, next, start,
    // end
    assertEquals(8, model.size());

    assertTrue(model.containsKey("jobExecutionInfo"));
    assertTrue(model.containsKey("jobInfo"));

    EasyMock.verify(jobService);

  }
View Full Code Here

Examples of org.structr.core.property.PropertyMap.containsKey()

        JsonInput properties = (JsonInput) source;
        PropertyMap map      = PropertyMap.inputTypeToJavaType(securityContext, type, properties.getAttributes());
       
        // If property map contains the uuid, search only for uuid
        if (map.containsKey(GraphObject.id)) {
       
          return (T) app.get(map.get(GraphObject.id));

         
        } else {
View Full Code Here

Examples of org.tmatesoft.svn.core.internal.util.SVNHashMap.containsKey()

       
        collectChangedMergeInfo(addedMergeInfoCatalog, deletedMergeInfoCatalog, revision);
       
        for (int i = 0; i < paths.length; i++) {
            String path = paths[i];
            if (deletedMergeInfoCatalog.containsKey(path)) {
                continue;
            }
            long[] appearedRevision = new long[] {-1};
            SVNLocationEntry prevLocation = null;
            try {
View Full Code Here

Examples of org.voltdb.utils.InMemoryJarfile.containsKey()

        byte[] catalogBytes = catalogCommands.getBytes(Constants.UTF8ENCODING);

        try {
            // Don't update buildinfo if it's already present, e.g. while upgrading.
            // Note when upgrading the version has already been updated by the caller.
            if (!jarOutput.containsKey(CatalogUtil.CATALOG_BUILDINFO_FILENAME)) {
                addBuildInfo(jarOutput);
            }
            jarOutput.put(CatalogUtil.CATALOG_FILENAME, catalogBytes);
            // put the compiler report into the jarfile
            jarOutput.put("catalog-report.html", m_report.getBytes(Constants.UTF8ENCODING));
View Full Code Here

Examples of org.waveprotocol.wave.client.common.util.JsoView.containsKey()

            Params.REVISION, revision + ""),
        new Rpc.RpcCallback() {
          @Override
          public void onSuccess(String data) throws MessageException {
            JsoView json = RpcUtil.evalPrefixed(data);
            if (json.containsKey("error")) {
              onConnectionError(new Exception(json.getString("error")));
            } else {
              callback.onConnect(json.getString("token"));
              JsoView history = json.getJsoView("history");
              if (history.getNumber("length") > 0) {
View Full Code Here

Examples of org.waveprotocol.wave.model.document.operation.Attributes.containsKey()

        final Attributes finalAttrAccu = attrAccu;
        Pair<String, String> newAttr = pickRandomNonNullMappedElement(r,
            p.getAttributeNames(), new Mapper<String, Pair<String, String>>() {
          @Override
          public Pair<String, String> map(final String name) {
            if (finalAttrAccu.containsKey(name)) {
              return null;
            }
            return pickRandomNonNullMappedElement(r, p.getAttributeValues(),
                new Mapper<String, Pair<String, String>>() {
              @Override
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.