Package java.util

Examples of java.util.Properties.containsKey()


    super.setContext(context);
    contextSelection.setKeysAndValues(context.getKeys(), context.getValues(), null);
    if (!context.isEmpty()) {
      String selectedContext = context.getKeyAt(context.getSize() - 1);
      Properties props = getPersistedSearch();
      if(props != null && props.containsKey("ctxt")) {
        selectedContext = props.getProperty("ctxt");
      }
      contextSelection.select(selectedContext, true);
    }
    advancedSearchController.setContextKeysAndValues(context.getKeys(), context.getValues());
View Full Code Here


  private static ArrayList prepareInstall(ArrayList list) throws Exception {
    ArrayList newList = new ArrayList();
    for (int i = 0; i < list.size(); i++) {
      Properties p = (Properties) list.get(i);
      newList.add(p);
      if (p.containsKey("operation") && sosString.parseToString(p.get("operation")).equals("install")) {

        Properties newp = (Properties) p.clone();
        newp.put("operation", "install_doc");
        newList.add(newp);
View Full Code Here

           
            if(this.applications != null && this.applications.containsKey(application)){
              LinkedHashMap sections = (LinkedHashMap)this.applications.get(application);
              if(sections.containsKey(section)){
                Properties entries = (Properties)sections.get(section);
                if(entries.containsKey(entry)){
                  entryValue = entries.getProperty(entry);
                }
                }
            }
                       
View Full Code Here

        if (entries.getProperty("smtp_timeout") != null) {
         if ( entries.getProperty("smtp_timeout").length() > 0 )
               this.timeout = 1000*Integer.parseInt(entries.getProperty("smtp_timeout"));
        }

        if (this.from == null && entries.containsKey("mail_from")) {
         if ( entries.getProperty("mail_from").length() > 0 )
               this.from = entries.getProperty("mail_from");
        }
    }

View Full Code Here

     
      //9. Folgende Monitore sollen in der Auslieferung im Lieferumfang sein
         //configuration_monitor -->sos.scheduler.managed.configuration.ConfigurationOrderMonitor
      //create_event_monitor --> sos.scheduler.jobs.JobSchedulerSubmitEventMonitor
      if(prefix.equalsIgnoreCase("monitor_favorite_")) {
        if(!p.containsKey("monitor_favorite_java_configuration_monitor")){
          p.put("monitor_favorite_java_configuration_monitor", "sos.scheduler.managed.configuration.ConfigurationOrderMonitor");
          setProperty("monitor_favorite_java_configuration_monitor", "sos.scheduler.managed.configuration.ConfigurationOrderMonitor");
        }
       
        if(!p.containsKey("monitor_favorite_java_create_event_monitor")){
View Full Code Here

        if(!p.containsKey("monitor_favorite_java_configuration_monitor")){
          p.put("monitor_favorite_java_configuration_monitor", "sos.scheduler.managed.configuration.ConfigurationOrderMonitor");
          setProperty("monitor_favorite_java_configuration_monitor", "sos.scheduler.managed.configuration.ConfigurationOrderMonitor");
        }
       
        if(!p.containsKey("monitor_favorite_java_create_event_monitor")){
          p.put("monitor_favorite_java_create_event_monitor", "sos.scheduler.job.JobSchedulerSubmitEventMonitor");
          setProperty("monitor_favorite_java_create_event_monitor", "sos.scheduler.job.JobSchedulerSubmitEventMonitor");
        }
      }
               
View Full Code Here

          if (spooler_job.order_queue() == null) {

            // parallel Transfer for standalone Job
            while (iterator.hasNext()) {
              String fileName = sosString.parseToString(iterator.next());
              String fileSpec = schedulerParams.containsKey(conVarname_file_spec) ? sosString.parseToString(schedulerParams.get(conVarname_file_spec))
                  : ".*";

              Pattern pattern = Pattern.compile(fileSpec, 0);
              Matcher matcher = pattern.matcher(fileName);
              if (matcher.find()) {
View Full Code Here

          }
          else {
            // parallel Transfer for order job
            while (iterator.hasNext()) {
              String fileName = (String) iterator.next();
              String fileSpec = schedulerParams.containsKey("file_spec") ? sosString.parseToString(schedulerParams.get("file_spec")) : ".*";
              Pattern pattern = Pattern.compile(fileSpec, 0);
              Matcher matcher = pattern.matcher(fileName);
              if (matcher.find()) {
                Variable_set newParams = spooler.create_variable_set();
                if (spooler_task.params() != null)
View Full Code Here

            properties.remove("table-name");
            properties.remove("column-name");
        }
        else if (strategy == IdentityStrategy.INCREMENT && tablegenmd == null)
        {
            if (!properties.containsKey("key-cache-size"))
            {
                // Use default allocation size
                int allocSize = getIntProperty("datanucleus.valuegeneration.increment.allocationSize");
                properties.put("key-cache-size", "" + allocSize);
            }
View Full Code Here

      assertNotNull(targetProp.getProperty(ktm));
      Properties sourceMetaProp = i18nMgr.getPropertiesWithoutResolvingRecursively(null, testSourceBundle);
      Properties targetMetaProp = i18nMgr.getPropertiesWithoutResolvingRecursively(null, testTargetBundle);
      assertNull(sourceMetaProp.getProperty(ktm + I18nManager.METADATA_ANNOTATION_POSTFIX));
      assertNull(sourceMetaProp.getProperty(ktm + I18nManager.METADATA_KEY_PRIORITY_POSTFIX));
      assertTrue(targetMetaProp.containsKey(ktm + I18nManager.METADATA_ANNOTATION_POSTFIX));
      assertEquals("100", targetMetaProp.getProperty(ktm + I18nManager.METADATA_KEY_PRIORITY_POSTFIX));
      //check for changed references in value
      //if correctly done, should still be resolvable
      assertTrue(sourcePropResolved.getProperty("key.to.stay2").indexOf(matchString)!=-1);
      tDMgr.logToFile("moveKey");
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.