Package java.util

Examples of java.util.Hashtable.keys()


      if (log.isLoggable(Level.FINER)) log.finer("getAllPluginConfig for node '" + node + "'");
      Hashtable tmp = (Hashtable)this.pluginConfigsDefault.clone();
      if (this.pluginConfigsNodes!=null && node!=null) {
         Hashtable nodeTable = (Hashtable)this.pluginConfigsNodes.get(node);
         if (nodeTable != null) {
            Enumeration enumer = nodeTable.keys();
            while (enumer.hasMoreElements()) {
               String key = (String)enumer.nextElement();
               tmp.put(key, nodeTable.get(key));
            }
         }
View Full Code Here


      enumer = this.pluginConfigsNodes.keys();
      while (enumer.hasMoreElements()) {
         String nodeId = (String)enumer.nextElement();
         Hashtable nodeTable = (Hashtable)this.pluginConfigsNodes.get(nodeId);
         sb.append(offset).append("   ").append("<node id='").append(nodeId).append("'>");
         Enumeration enumNodes = nodeTable.keys();
         while (enumNodes.hasMoreElements()) {
            String key = (String)enumNodes.nextElement();
           PluginConfig pluginConfig = (PluginConfig)nodeTable.get(key);
            sb.append(pluginConfig.toXml(extraOffset + "      "));
         }
View Full Code Here

      try {
         File file = new File("simple.svg");
         DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
         Document doc = builder.parse(file);
         Hashtable idTable = mapper.createIdTable(doc);
         Enumeration keys = idTable.keys();
         while (keys.hasMoreElements()) {
            String key = (String)keys.nextElement();
            System.out.println(key);
         }
      }
View Full Code Here

    if ((addresses != null) && (!addresses.isEmpty()))
    {
      String key = null;
      String value = null;
      for (Enumeration e = addresses.keys(); e.hasMoreElements();)
      {
        key = (String) e.nextElement();
        value = (String) addresses.get(key);
        if (XBUSSystem.FILENAME_WILDCARD_XML.equals(key))
        {
View Full Code Here

         */
        Hashtable copyAdresses = (Hashtable) getSource().getAddresses()
            .clone();
        String key = null;
        String value = null;
        for (Enumeration e = copyAdresses.keys(); e.hasMoreElements();)
        {
          key = (String) e.nextElement();
          value = (String) copyAdresses.get(key);
          if (XBUSSystem.FILENAME_WILDCARD.equals(key))
          {
View Full Code Here

    if (!addresses.isEmpty())
    {
      Element addressesNode = doc.createElement("Addresses");
      String address = null;
      Element addressNode = null;
      for (Enumeration keys = addresses.keys(); keys.hasMoreElements();)
      {
        address = (String) keys.nextElement();
        addressNode = doc.createElement("Address");
        addressNode.setAttribute("name", address);
        addressNode.appendChild(doc.createTextNode((String) addresses
View Full Code Here

    // outside a category.
    itemCategory = doc.createElement ("category");
    itemCategory.setAttribute ("name", name);

    Hashtable category = (Hashtable) content.get(name);
    Enumeration myItems = category.keys();
    for (; myItems.hasMoreElements() ;) {
      String code = (String) myItems.nextElement();
      String value = (String) category.get(code);

      item = doc.createElement ("data");
View Full Code Here

      Hashtable chapter = (Hashtable) chapters.nextElement();
      for (Enumeration sections = chapter.elements(); sections
          .hasMoreElements();)
      {
        Hashtable section = (Hashtable) sections.nextElement();
        for (Enumeration keys = section.keys(); keys.hasMoreElements();)
        {
          String key = (String) keys.nextElement();
          String value = (String) section.get(key);

          /*
 
View Full Code Here

        if (f.defaulted("vector")) {
            //  pre-1.4 stream
            Hashtable tab = (Hashtable)f.get("tab", null);
            vector = new Vector();
            if (tab != null && !tab.isEmpty()) {
                for (Enumeration e = tab.keys() ; e.hasMoreElements() ; ) {
                    String key = (String)e.nextElement();
                    Component comp = (Component)tab.get(key);
                    vector.add(new Card(key, comp));
                    if (comp.isVisible()) {
                        currentCard = vector.size() - 1;
View Full Code Here

        // Hack to allow MSJVM access to the protected member
        Hashtable activeListeners = vpnClient.getTunnelManager().getActiveLocalTunnels();

        synchronized (activeListeners) {
          long now = System.currentTimeMillis();
          for (Enumeration e = activeListeners.keys(); e.hasMoreElements();) {
            Integer id = (Integer) e.nextElement();
            LocalTunnelServer l = (LocalTunnelServer) activeListeners.get(id);
            try {
              if (l.isListening()) {
                // Temporary single connect tunnels and
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.