Package java.util

Examples of java.util.Hashtable.keys()


        // endElement():  merges contents of fGlobalIDConstraintMap with the
        // top of fGlobalMapStack into fGlobalIDConstraintMap.
        public void endElement() {
            if (fGlobalMapStack.isEmpty()) return; // must be an invalid doc!
            Hashtable oldMap = (Hashtable)fGlobalMapStack.pop();
            Enumeration keys = oldMap.keys();
            while(keys.hasMoreElements()) {
                IdentityConstraint id = (IdentityConstraint)keys.nextElement();
                ValueStoreBase oldVal = (ValueStoreBase)oldMap.get(id);
                if(oldVal != null) {
                    ValueStoreBase currVal = (ValueStoreBase)fGlobalIDConstraintMap.get(id);
View Full Code Here


                       "import java.util.Hashtable;\n" +
                       "class ClassSizeCatalog extends java.util.Hashtable\n" +
                       "{\n" +
                       "    ClassSizeCatalog()\n" +
                       "    {\n");
            for( Enumeration e = classSizes.keys();
                 e.hasMoreElements();)
            {
                String className = (String) e.nextElement();
                int[] coeff = (int[]) classSizes.get( className);
                out.print( "        put( \"" + className + "\", new int[]{" + coeff[0] + "," + coeff[1] + "});\n");
View Full Code Here

                String key;

                Hashtable ss = currentConnEnv.getSessions();
                // Calculate the number of connections in the sessions list and
                // build an array of all the connection names.
                for (Enumeration connectionNames = ss.keys(); connectionNames.hasMoreElements();) {
                    if (count == size) {
                       // need to expand the array
                       size = size*2;
                       String[] expandedArray = new String[size];
                       System.arraycopy(array, 0, expandedArray, 0, count);
View Full Code Here

                v.addElement(LocalizedResource.getMessage("IJ_NoConneAvail"));
        }
        else {
                boolean haveCurrent=false;
                        int count = 0;
                        for (Enumeration connectionNames = ss.keys(); connectionNames.hasMoreElements();
                                                connectionNames.nextElement())
                        count++;
            String[] array = sortConnectionNames();
                    for ( int ictr = 0; ictr < count; ictr++ ) {
                                String connectionName = array[ ictr ];
View Full Code Here

            **the foreign key relatiosn ship.
            **If we have multiple paths they should have the same type
            **referential action and only one SET NULL path.
            **/

            for (Enumeration e = dConnHashtable.keys() ; e.hasMoreElements() ;)
            {
              String tName = (String) e.nextElement();
              //we should not check for the table name to which  we are
              //adding the foreign key relation ship.
              if(!tName.equals(addTableName))
View Full Code Here

            for (Enumeration ae = kerningTab.keys(); ae.hasMoreElements(); ) {
                Integer cidKey = (Integer)ae.nextElement();
                Hashtable akpx = new Hashtable();
                Hashtable ckpx = (Hashtable)kerningTab.get(cidKey);

                for (Enumeration aee = ckpx.keys(); aee.hasMoreElements(); ) {
                    Integer cidKey2 = (Integer)aee.nextElement();
                    Integer kern = (Integer)ckpx.get(cidKey2);

                    for (Enumeration uniMap = mtx_tab[cidKey2.intValue()].unicodeIndex.elements();
                            uniMap.hasMoreElements(); ) {
View Full Code Here

                }
            }

            // Iterate through all composites to remap their composite index

            for (Enumeration ce = allComposites.keys();
                    ce.hasMoreElements(); ) {
                remapComposite(in, glyphs, (int)entry.offset,
                               (Integer)ce.nextElement());
            }
View Full Code Here

                                + jmethod.getSimpleName() + RESPONSE, null);
            }
        }

        // now add these unique namespaces to the the definitions element
        Enumeration enumeration = namespaceMap.keys();
        while (enumeration.hasMoreElements()) {
            namespaceURI = (String) enumeration.nextElement();
            definitions.declareNamespace(namespaceURI, (String) namespaceMap
                    .get(namespaceURI));
        }
View Full Code Here

     * @param doc PDF document to add fonts to
     * @param fontInfo font info object to get font information from
     */
    public static void addToResources(PDFDocument doc, FontInfo fontInfo) {
    Hashtable fonts = fontInfo.getFonts();
    Enumeration e = fonts.keys();
    PDFResources resources = doc.getResources();
    while (e.hasMoreElements()) {
        String f = (String) e.nextElement();
        Font font = (Font)fonts.get(f);
        FontDescriptor desc = null;
View Full Code Here

               index = attrList.getNextAttr(index);
            }

            // try to resolve all the grammars here
            if (locationUriPairs != null) {
               Enumeration locations = locationUriPairs.keys();

               while (locations.hasMoreElements()) {
                  String loc = (String) locations.nextElement();
                  String uri = (String) locationUriPairs.get(loc);
                  resolveSchemaGrammar( loc, uri);
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.