Package java.util

Examples of java.util.LinkedHashMap.keySet()


                // update the results
                //
                results.setLoaded(loadedParents.keySet());
                results.addLoaded(newConfigurationId);
                if (started.contains(existingConfigurationId)) {
                    results.setStarted(startedParents.keySet());
                    results.addStarted(newConfigurationId);
                }

                //
                // update the model
View Full Code Here


    if (trace)
      log.trace("After filtering, exporter [" + exporterBeanName + "] depends on importers:"
          + dependingImporters.values());

    Collection filteredImporters = dependingImporters.keySet();

    // add the importers and their status to the collection
    synchronized (exporter) {
      Map importerStatuses = new LinkedHashMap(filteredImporters.size());
View Full Code Here

        j = m + 1;
      }
    }
    if (j < len)
      sb.append(pattern.substring(j));
    return new NameInfo(sb.toString(), names.keySet());
  }
  /** The name info returned by {@link #parseByName}).
   */
  public static class NameInfo {
    /** The pattern in the format of java.text.MessageFormat. */
 
View Full Code Here

        code.append(")\n" + "{\n" + "          if constant_true() then "
                + actorName + "_inputdriver( ");

        first = true;

        for (Iterator sourceNames = driverIOMap.keySet().iterator(); sourceNames
                .hasNext();) {
            if (first) {
                first = false;
            } else {
                code.append(", ");
View Full Code Here

            String ddIface = ddBean.getText("adminobject-interface")[0];
            GerAdminobjectType admin = connector.addNewAdminobject();
            dcbs.put("class "+ddClass+" iface "+ddIface, new AdminObjectDCB(ddBean, admin));
        }
        List adminResults = new ArrayList();
        for (Iterator it = dcbs.keySet().iterator(); it.hasNext();) {
            String key = (String) it.next();
            DConfigBean value = (DConfigBean) dcbs.get(key);
            adminResults.add(value);
        }
        adminobjects = (AdminObjectDCB[]) adminResults.toArray(new AdminObjectDCB[adminResults.size()]);
View Full Code Here

                throw new LifecycleException("load", id, e);
            }

            // update the status of the loaded configurations
            addNewConfigurationsToModel(actuallyLoaded);
            results.setLoaded(actuallyLoaded.keySet());
        }
        load(id);
        monitor.finished();
        return results;
    }
View Full Code Here

                // update the results
                //
                results.setLoaded(loadedParents.keySet());
                results.addLoaded(newConfigurationId);
                if (started.contains(existingConfigurationId)) {
                    results.setStarted(startedParents.keySet());
                    results.addStarted(newConfigurationId);
                }

                //
                // update the model
View Full Code Here

                    dependenciesMap.put(node.getDescriptor(), n);
                }
                n.add(node);
            }
        }
        List list = sortModuleDescriptors(dependenciesMap.keySet());
        List ret = new ArrayList((int)(list.size()*1.3+nulls.size())); //attempt to adjust the size to avoid too much list resizing
        for (int i=0; i<list.size(); i++) {
            ModuleDescriptor md = (ModuleDescriptor)list.get(i);
            List n = (List)dependenciesMap.get(md);
            ret.addAll(n);           
View Full Code Here

                "    <string>X</string>\n" +
                "    <string>b</string>\n" +
                "  </entry>\n" +
                "</linked-hash-map>");

        Object[] keys = result.keySet().toArray();
        assertEquals("Z", keys[0]);
        assertEquals("C", keys[1]);
        assertEquals("X", keys[2]);
    }
   
View Full Code Here

            String ddIface = ddBean.getText("adminobject-interface")[0];
            GerAdminobjectType admin = connector.addNewAdminobject();
            dcbs.put("class "+ddClass+" iface "+ddIface, new AdminObjectDCB(ddBean, admin));
        }
        List adminResults = new ArrayList();
        for (Iterator it = dcbs.keySet().iterator(); it.hasNext();) {
            String key = (String) it.next();
            DConfigBean value = (DConfigBean) dcbs.get(key);
            adminResults.add(value);
        }
        adminobjects = (AdminObjectDCB[]) adminResults.toArray(new AdminObjectDCB[adminResults.size()]);
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.