Package java.util

Examples of java.util.Properties.keySet()


      } catch (Exception e) {
        framework.debug.printStackTrace("Failed to set patches filter", e);
      }
    }

    for(Iterator it = props.keySet().iterator(); it.hasNext(); ) {
      String key = (String)it.next();
      if(key.startsWith(PRE)) {
        int ix = key.lastIndexOf(".from");
        if(ix != -1) {
          String id = key.substring(PRE.length(), ix);
View Full Code Here


   
    List dispList = new ArrayList();
    for (Iterator iter = fileToProp.keySet().iterator(); iter.hasNext();) {
      File fil = (File) iter.next();
      Properties p = (Properties)fileToProp.get(fil);
      for (Iterator iterator = p.keySet().iterator(); iterator.hasNext(); ) {
        String key = (String) iterator.next();
        boolean ok = findInHTMLorJava(key);
        String value = p.getProperty(key);
        if (!ok) {
          String msg = fil.getAbsolutePath().substring(path.length())+" unused key "+key+ "="+value;
View Full Code Here

                {
                    in.close();
                }
                Set set = new HashSet(props.size() * 4/3, .75f);
                Map primClasses = createPrimitiveClassesMap();
                for (Iterator iterator = props.keySet().iterator(); iterator.hasNext();)
                {
                    methodSpec = (String) iterator.next();
                    try {
                        set.add(parseMethodSpec(methodSpec, primClasses));
                    }
View Full Code Here

          p.putAll(getMessagesFromBundle(Application.getClasspathPrefix() + clientBundle));
        } catch (IOException e) {
          throw new JibeRuntimeException("Message bundles could not be loaded", e);
        }
      }
      for (Object key : p.keySet()) {
        o.put((String) key, p.getProperty((String) key));
      }
      clientMessagesCache.put(locale, o);
    }
    return clientMessagesCache.get(locale);
View Full Code Here

        @SuppressWarnings("unchecked")
        public void print(Writer out) throws Exception
        {
          appendTitle(out, "System properties");
          Properties systemProperties = System.getProperties();
          Iterator it = new TreeSet(systemProperties.keySet()).iterator();
          while (it.hasNext())
          {
            Object key = it.next();
            out.append(key.toString()).append(": ").append(String.valueOf(systemProperties.get(key))).append("\n");
          }
View Full Code Here

 
  public void print(Writer out) throws Exception
  {
    Properties properties = System.getProperties();
   
    Iterator<Object> it = new TreeSet<Object>(properties.keySet()).iterator();
    out.append("<pre>\n<table>\n");
    while (it.hasNext())
    {
      Object key = it.next();
      out.append("\t<tr><td><b>").append(key.toString()).append("</b></td>");
View Full Code Here

            InternalUtils.close(is);
        }

        Map<String, String> map = CollectionFactory.newCaseInsensitiveMap();

        for (Object key : properties.keySet())
        {

            String skey = (String) key;

            map.put(skey, properties.getProperty(skey));
View Full Code Here

    }

    protected void setLibraryReferences(ToolContext env) {
        Properties props = loadProperties(getResourceAsStream("wsdltojavalib.properties"));
        if (props != null) {
            for (Iterator keys = props.keySet().iterator(); keys.hasNext();) {
                String key = (String)keys.next();
                env.put(key, props.get(key));
            }
        }
        env.put(ToolConstants.CFG_ANT_PROP, props);
View Full Code Here

        membershipHandlerElement.addAttribute("class",loadBalanceMembershipHandler.getClass().getName(),null);

        Properties membershipHandlerProperties = loadBalanceMembershipHandler.getProperties();
        OMElement propertyElement;
        for (Object property : membershipHandlerProperties.keySet()){
            propertyElement = fac.createOMElement("property", SynapseConstants.SYNAPSE_OMNAMESPACE);
            membershipHandlerElement.addChild(propertyElement);
            propertyElement.addAttribute("name", property.toString(), null);
            propertyElement.addAttribute("value", membershipHandlerProperties.getProperty((String)property), null);
        }
View Full Code Here

        cipherInformation.setCipherOperationMode(CipherOperationMode.DECRYPT);
        cipherInformation.setInType(EncodingType.BASE64); //TODO
        DecryptionProvider baseCipher =
                CipherFactory.createCipher(cipherInformation, keyStoreWrapper);

        for (Object alias : cipherProperties.keySet()) {
            //decrypt the encrypted text
            String key = String.valueOf(alias);
            String encryptedText = cipherProperties.getProperty(key);
            if (encryptedText == null || "".equals(encryptedText.trim())) {
                if (log.isDebugEnabled()) {
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.