Examples of containsKey()


Examples of org.rhq.core.domain.common.composite.SystemSettings.containsKey()

            return null;
        } else {
            clusterSettings.setPasswordHash(settings.get(SystemSetting.STORAGE_PASSWORD));
        }

        if (!settings.containsKey(SystemSetting.STORAGE_REGULAR_SNAPSHOTS)) {
            return null; // why?
        } else {
            RegularSnapshots rs = new RegularSnapshots();
            clusterSettings.setRegularSnapshots(rs);
            rs.setEnabled(Boolean.parseBoolean(settings.get(SystemSetting.STORAGE_REGULAR_SNAPSHOTS)));
View Full Code Here

Examples of org.rhq.core.domain.configuration.PropertyMap.containsKey()

        List<Map<String, Object>> value = (List<Map<String, Object>>) additionalProperties.get("value");
        Assert.assertEquals(value.size(), 3);

        index = 1;
        for (Map<String, Object> map : value) {
            Assert.assertTrue(map.containsKey("test" + index));
            index++;
            Assert.assertTrue(map.containsValue("test" + index));
            index++;

            Assert.assertEquals(map.size(), 1);
View Full Code Here

Examples of org.rhq.core.util.updater.FileHashcodeMap.containsKey()

        assertFalse(new File(DEPLOY_DIR, "archived-subdir").isDirectory(), "should not still have the exploded dir");

        DeploymentsMetadata dm = new DeploymentsMetadata(DEPLOY_DIR);
        if (!dryRun) {
            FileHashcodeMap fhm = dm.getCurrentDeploymentFileHashcodes();
            assertFalse(fhm.containsKey("archived-bundle-file.txt"),
                "should not have metadata - this is inside the compressed zip");
            assertFalse(fhm.containsKey("archived-subdir/archived-file-in-subdir.properties"),
                "should not have metadata - this is inside the compressed zip");
            assertTrue(fhm.containsKey("file.zip"),
                String
View Full Code Here

Examples of org.rzo.yajsw.config.YajswConfigurationImpl.containsKey()

    timeout = _config.getInt("wrapper.startup.timeout", Constants.DEFAULT_STARTUP_TIMEOUT) * 1000;
    service.setStartupTimeout(timeout);
   
    service.setAutoReportStartup(_config.getBoolean("wrapper.ntservice.autoreport.startup", true));
   
    if (_config.containsKey("wrapperx.config"))
    {
      List<String> configs = _config.getList("wrapperx.config");
      wList = WrappedProcessFactory.createProcessList(new HashMap(), configs, true);
      for (WrappedProcess p : wList)
      {
View Full Code Here

Examples of org.simpleframework.http.Query.containsKey()

  
      Query query = link.getQuery();              
                   
      assertEquals(2, query.size());     
      assertEquals("value", query.get("name"));
      assertTrue(query.containsKey("attribute"));

      query.clear();
      query.put("name", "change");

      assertEquals("change", query.get("name"));
View Full Code Here

Examples of org.sonatype.nexus.proxy.RequestContext.containsKey()

    }
  }

  protected boolean isForceAttributeRecreation(final WalkerContext ctx) {
    final RequestContext reqestContext = ctx.getResourceStoreRequest().getRequestContext();
    if (reqestContext.containsKey(FORCE_ATTRIBUTE_RECREATION, false)) {
      // obey the "hint"
      return Boolean.parseBoolean(String.valueOf(reqestContext.get(FORCE_ATTRIBUTE_RECREATION, false)));
    }
    else {
      // fallback to default behavior: do force it
View Full Code Here

Examples of org.sonatype.nexus.proxy.attributes.Attributes.containsKey()

                .getRepositoryItemUid();

            final Attributes attributes = attributeStorage
                .getAttributes(uid);

            if (attributes.containsKey(ATTR_IS_SAVED)) {

              attributes.remove(ATTR_IS_SAVED);
              attributes.remove(ATTR_SAVE_TIME);

              attributeStorage.putAttributes(uid, attributes);
View Full Code Here

Examples of org.spoofax.interpreter.library.ssl.StrategoHashMap.containsKey()

        qualTerms.add(ATermCommands.makeString(qual));
      IStrategoTerm quals = ATermCommands.makeList("Qualifiers", qualTerms);
      IStrategoTerm from = ATermCommands.makeString(r.from);
      IStrategoTerm to = ATermCommands.makeString(r.to);
     
      if (!map.containsKey(from))
        map.put(from, to);
      if (!map.containsKey(ATermCommands.makeTuple(quals, from)))
      map.put(ATermCommands.makeTuple(quals, from), to);
    }
   
View Full Code Here

Examples of org.spout.nbt.CompoundMap.containsKey()

   * @param item Item to check
   * @return true if the item contains any enchantment
   */
  public static boolean isEnchanted(ItemStack item) {
    CompoundMap nbtData = item.getNBTData();
    return nbtData != null && nbtData.containsKey("ench") && nbtData.get("ench") instanceof ListTag<?>;
  }

  /**
   * An object holding both the type of {@link Enchantment} as well as its power level (I, II, III, IV, V)
   */
 
View Full Code Here

Examples of org.springframework.batch.item.ExecutionContext.containsKey()

    assertNotNull("MR step not found", mrStep);
    //Check JobRepository
    MapJobRepositoryFactoryBean repo = ctx.getBean(MapJobRepositoryFactoryBean.class);
    ExecutionContext ec =
        repo.getExecutionContextDao().getExecutionContext(mrStep);
    assertTrue("Looking for Job ID", ec.containsKey("Job Status::ID"));
    assertTrue("Looking for Job Name", ec.containsKey("Job Status::Name"));
    assertTrue("Looking for Job State", ec.containsKey("Job Status::State"));
    assertTrue("Looking for File System Counters",
        (ec.containsKey("File System Counters::FILE: Number of bytes read")) ||
            ec.containsKey("FileSystemCounters::FILE_BYTES_READ"));
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.