Package java.util

Examples of java.util.Properties.keys()


            if (jdbcURL.getConnectionURL() != null) {
              info.setProperty(TeiidURL.CONNECTION.SERVER_URL, jdbcURL.getConnectionURL());
            }
            Properties optionalParams = jdbcURL.getProperties();
            JDBCURL.normalizeProperties(info);
            Enumeration keys = optionalParams.keys();
            while (keys.hasMoreElements()) {
                String propName = (String)keys.nextElement();
                // Don't let the URL properties override the passed-in Properties object.
                if (!info.containsKey(propName)) {
                    info.setProperty(propName, optionalParams.getProperty(propName));
View Full Code Here


  public Set<String> getLabelKeys(String labelFilename) {
    Set<String> labelKeys = new HashSet<String>();
    try {
      Properties labelProps = loadLabel(labelFilename);
      if (labelProps != null) {
        Enumeration<Object> keys = labelProps.keys();
        while (keys.hasMoreElements()) {
          labelKeys.add((String) keys.nextElement());
        }
      }
    } catch (CoreException e) {
View Full Code Here

          }
          finally
          {
            bin.close();
          }
          final Enumeration en = encDef.keys();
          while (en.hasMoreElements())
          {
            final String enc = (String) en.nextElement();
            // if not set to "true"
            if ("true".equalsIgnoreCase(encDef.getProperty(enc, "false"))) //$NON-NLS-1$ //$NON-NLS-2$
View Full Code Here

        return;
      }

      reset();

      final Enumeration keys = prop.keys();
      while (keys.hasMoreElements())
      {
        final String key = (String) keys.nextElement();
        final String value = prop.getProperty(key);
        configuration.setConfigProperty(key, value);
View Full Code Here

    public Properties getProperties(String prefix) {
        Properties prefixProperties = new Properties();
        Properties props = getProperties();
        if (prefix != null) {
            String scopedPrefix = prefix + ".";
            for (Enumeration e = props.keys(); e.hasMoreElements();) {
                String key = (String) e.nextElement();
                if (key.startsWith(scopedPrefix)) {
                    prefixProperties.put(key, props.get(key));
                }
            }
View Full Code Here

    FileInputStream oIoStrm = new FileInputStream(oFile);
    oPSet.load(oIoStrm);
    oIoStrm.close();

    if (DebugFile.trace) {
      Enumeration oKeys = oPSet.keys();
      while (oKeys.hasMoreElements()) {
        String sKey = (String) oKeys.nextElement();
        DebugFile.writeln(sKey+"="+oPSet.getProperty(sKey));
      } // wend
    } // fi
View Full Code Here

      /*
       * Move all elements of currently loaded properties to the complete
       * set
       */
      String key = null;
      for (Enumeration keys = newProps.keys(); keys.hasMoreElements();)
      {
        key = (String) keys.nextElement();

        mMessages.put(key, newProps.get(key));
      }
View Full Code Here

      /*
       * Move all elements of currently loaded properties to the complete
       * set
       */
      String key = null;
      for (Enumeration keys = newProps.keys(); keys.hasMoreElements();)
      {
        key = (String) keys.nextElement();

        /*
         * Detection of collisions
View Full Code Here

          oStmt.executeUpdate();
        } // wend
      } // fi (cc)

      if (!pBCC.isEmpty()) {
        oMailEnum = pBCC.keys();
        while (oMailEnum.hasMoreElements()) {
          oStmt.setString(1, sMessageID);
          sTxEmail = (String) oMailEnum.nextElement();
          aRecipient = Gadgets.split(pBCC.getProperty(sTxEmail),',');
View Full Code Here

         // They must all match for the test to pass.
         InitialContext ic = new InitialContext();
         MBeanServerConnection server = (MBeanServerConnection) ic.lookup("jmx/invoker/RMIAdaptor");
         ObjectName objectName = new ObjectName(data.getName());
         Properties attrs = data.getAttributes();
         Enumeration keys = attrs.keys();
         log.info("Verifying MBean attribute values:");
         while (keys.hasMoreElements())
         {
            String attr = (String) keys.nextElement();
            String expected = (String) attrs.get(attr);
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.