Package java.util

Examples of java.util.Properties.keys()


  */
  protected void createSPSSet(TransactionController tc, boolean net, UUID schemaID)
    throws StandardException
  {
    Properties p = getQueryDescriptions(net);
    Enumeration e = p.keys();
    //statement will get compiled on first execution
    //Note: Don't change this to FALSE LCC is not available for compiling
    boolean nocompile = true;
   
    while (e.hasMoreElements())
View Full Code Here


            log.info(iconProp + " not found - using default icon set");
            return DEFAULT_ICONS;
        }
        log.info("Loaded icon properties from " + iconProp);
        String[][] iconlist = new String[p.size()][3];
        Enumeration<Object> pe = p.keys();
        int i = 0;
        while (pe.hasMoreElements()) {
            String key = (String) pe.nextElement();
            String icons[] = JOrphanUtils.split(p.getProperty(key), " ");
            iconlist[i][0] = key;
View Full Code Here

            log.info(iconProp + " not found - using inbuilt icon set");
            return DEFAULT_ICONS;
        }
        log.info("Loaded icon properties from " + iconProp);
        String[][] iconlist = new String[p.size()][3];
        Enumeration<?> pe = p.keys();
        int i = 0;
        while (pe.hasMoreElements()) {
            String key = (String) pe.nextElement();
            String icons[] = JOrphanUtils.split(p.getProperty(key), " ");//$NON-NLS-1$
            iconlist[i][0] = key;
View Full Code Here

                    }
                    else {
                        // Check for duplicates
                        Properties otherList = new Properties();
                        otherList.load( is);
                        for( Enumeration newKeys = otherList.keys(); newKeys.hasMoreElements() ;)
                        {
                            String key = (String) newKeys.nextElement();
                            if (moduleList.containsKey(key))
                                // RESOLVE how do we localize messages before we have finished initialization?
                                report( "Ignored duplicate property " + key + " in " + modulesPropertiesURL.toString());
View Full Code Here

                    }
                    else {
                        // Check for duplicates
                        Properties otherList = new Properties();
                        otherList.load( is);
                        for( Enumeration newKeys = otherList.keys(); newKeys.hasMoreElements() ;)
                        {
                            String key = (String) newKeys.nextElement();
                            if( moduleList.contains( key))
                                // RESOLVE how do we localize messages before we have finished initialization?
                                report( "Ignored duplicate property " + key + " in " + modulesPropertiesURL.toString());
View Full Code Here

            environment.add(key + "=" + value);
          }

          // Now, copy all env vars from the current environment
          if (sysEnv != null) {
            Enumeration envKeys = sysEnv.keys();

            while (envKeys.hasMoreElements()) {
              String key = (String) envKeys.nextElement();
              // Skip those vars that we've already setup above
              if (key.equalsIgnoreCase("PATH") || key.equalsIgnoreCase("CLASSPATH")) {
View Full Code Here

   */
  private void printSysEnvironment() {
    Properties sysEnv = null;
    try {
      sysEnv = SystemEnvReader.getEnvVars();
      Enumeration sysKeys = sysEnv.keys();
      while (sysKeys.hasMoreElements()) {
        String key = (String) sysKeys.nextElement();
        if (UIMAFramework.getLogger().isLoggable(Level.FINEST)) {
          UIMAFramework.getLogger(this.getClass()).logrb(Level.FINEST, this.getClass().getName(),
                  "initialize", CPMUtils.CPM_LOG_RESOURCE_BUNDLE,
View Full Code Here

  protected String getEnvVarValue(String aKey) {
    Properties sysEnv = null;
    try {
      // Retrieve all env variables
      sysEnv = SystemEnvReader.getEnvVars();
      Enumeration sysKeys = sysEnv.keys();
      while (sysKeys.hasMoreElements()) {
        String key = (String) sysKeys.nextElement();
        if (aKey.equalsIgnoreCase(key)) {
          return sysEnv.getProperty(key);
        }
View Full Code Here

                                try {
                                    props.load(new StringReader(rawConfig));
                                } catch ( final IOException ioe) {
                                    throw new IllegalArgumentException("Unable to read configuration properties.", ioe);
                                }
                                final Enumeration<Object> i = props.keys();
                                while ( i.hasMoreElements() ) {
                                    final String key = (String)i.nextElement();
                                    newConfig.getProperties().put(key, props.get(key));
                                }
                            } else {
View Full Code Here

                                ByteArrayInputStream bais = null;
                                try {
                                    bais = new ByteArrayInputStream(sb.toString().getBytes("UTF-8"));
                                    @SuppressWarnings("unchecked")
                                    final Dictionary<String, Object> props = ConfigurationHandler.read(bais);
                                    final Enumeration<String> i = props.keys();
                                    while ( i.hasMoreElements() ) {
                                        final String key = i.nextElement();
                                        newConfig.getProperties().put(key, props.get(key));
                                    }
                                } catch ( final IOException ioe) {
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.