Package java.util

Examples of java.util.SortedMap.keySet()


            hbox.add(new JLabel(resources.getStringValue("asciiOptionCharset")));
            hbox.add(Box.createHorizontalGlue());
            hbox.add(cbxCharset = new JComboBox());
            cbxCharset.addItem(resources.getStringValue("asciiOptionNoCharset"));
            SortedMap map = Charset.availableCharsets();
            for (Iterator it = map.keySet().iterator(); it.hasNext();) {
                cbxCharset.addItem(it.next());
            }
            // TODO: Use preferences to set a default charset if desired by user
            cbxCharset.setSelectedIndex(0); // None by default
            box.add(hbox);
View Full Code Here


      }

      oSortedMap.put(((Element)oNodeList.item(i)).getElementsByTagName("metablock").item(0).getFirstChild().getNodeValue() + sPaddedID, oNodeList.item(i));
    } // next (i)

    Iterator oIterator = oSortedMap.keySet().iterator();
    while (oIterator.hasNext()) {
      Node oAux = (Node) oSortedMap.get(oIterator.next());
      oLinkVctr.add(new Block(oAux));
      if (DebugFile.trace)
        DebugFile.writeln("Inserted " + ((Element)oAux).getElementsByTagName("metablock").item(0).getFirstChild().getNodeValue() + (new Integer(oAux.getAttributes().getNamedItem("id").getNodeValue())).intValue());
View Full Code Here

        buffer.append("<category name=\"");
        buffer.append(escapeForXML(category.getCategoryName()));
        buffer.append("\">\n");       
        SortedMap sm = getSortedProperties(categoryPath,false);
        if (sm != null) {
            Iterator nit = sm.keySet().iterator();
            while (nit.hasNext()) {
                String name = (String) nit.next();
                String value = (String)sm.get(name);
                for ( int i = 0; i < indent+2;i++) {
                    buffer.append(" ");
View Full Code Here

                buffer.append("\"");
            }
            buffer.append(">\n");
            SortedMap sm = getSortedProperties(ec.getCategoryName(),false);
            if (sm != null) {
                Iterator nit = sm.keySet().iterator();
                while (nit.hasNext()) {
                    String name = (String) nit.next();
                    String value = (String)sm.get(name);                
                    buffer.append("    <");
                    buffer.append(escapeForXML(name));
View Full Code Here

            buffer.append("  <category name=\"");
            buffer.append(escapeForXML(cats[i]));
            buffer.append("\">\n");           
            SortedMap sm = getSortedProperties(cats[i],false);
            if (sm != null) {
                Iterator nit = sm.keySet().iterator();
                while (nit.hasNext()) {
                    String name = (String) nit.next();
                    String value = (String)sm.get(name);
                    buffer.append("    <property name=\"");
                    buffer.append(escapeForXML(name));
View Full Code Here

        for (int i = 0; i < cats.length; i++) {
            buffer.append(cats[i]);
            buffer.append(": \n");           
            SortedMap sm = getSortedProperties(cats[i],configuration);
            if (sm != null) {
                Iterator nit = sm.keySet().iterator();
                while (nit.hasNext()) {
                    String name = (String) nit.next();
                    String value = (String)sm.get(name);
                    buffer.append("\t");
                    buffer.append(name);
View Full Code Here

          {
            attribute.setAttribute("value", e.getMessage());
          }
          sortedAttributes.put(attributes[i].getName(), attribute);
        }
        Iterator keys = sortedAttributes.keySet().iterator();
        while (keys.hasNext())
        {
          root.appendChild((Element)sortedAttributes.get(keys.next()));
        }
      }
View Full Code Here

            Element attributeElement = setAttribute(document, attributeVariable, valueVariable, name);
            allAttributes.put(attributeVariable, attributeElement);
            operationElement.appendChild(attributeElement);
          }
        }
        keys = allAttributes.keySet().iterator();
        while (keys.hasNext()) {
          Element attributeElement = (Element)allAttributes.get(keys.next());
          operationElement.appendChild(attributeElement);
        }
      }
View Full Code Here

            String valueVariable = in.getVariable("value_" + attributeVariable);
            Element attributeElement = setAttribute(document, attributeVariable, valueVariable, name);
            allAttributes.put(attributeVariable, attributeElement);
          }
        }
        keys = allAttributes.keySet().iterator();
        while (keys.hasNext()) {
          Element attributeElement = (Element)allAttributes.get(keys.next());
          operationElement.appendChild(attributeElement);
        }
      }
View Full Code Here

            Bufferlo valueBuffer = ((Chunk)storage.get(key)).getValue();
            sequentialUpdates.put(key, valueBuffer);
        }

        // replay all the updates from the file
        for(Iterator u = sequentialUpdates.keySet().iterator(); u.hasNext(); ) {
            Integer key = (Integer)u.next();
            Bufferlo update = (Bufferlo)sequentialUpdates.get(key);
            ListEventToBytes.toListEvent(update, this, byteCoder);
        }
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.