Package java.util

Examples of java.util.Hashtable.keys()


           throw new Exception(res.getErrorMessage());
         }

         // insert vat rows in sale vat register...
         ArrayList vatRows = new ArrayList();
         Enumeration en = vats.keys();
         while(en.hasMoreElements())
           vatRows.add(vats.get(en.nextElement()));
         res = vatRegisterAction.insertVatRows(vatRows,serverLanguageId,username);
         if (res.isError()) {
           throw new Exception(res.getErrorMessage());
View Full Code Here


        }
      }


      // check components availability in the specified warehouse...
      Enumeration en = comps.keys();
      GridParams gridParams = new GridParams();
      gridParams.getOtherGridParams().put(ApplicationConsts.COMPANY_CODE_SYS01,prodVO.getCompanyCodeSys01DOC23());
      gridParams.getOtherGridParams().put(ApplicationConsts.WAREHOUSE_CODE,prodVO.getWarehouseCodeWar01DOC22());
      gridParams.getOtherGridParams().put(ApplicationConsts.LOAD_ALL,Boolean.TRUE);
      ItemAvailabilityVO availVO = 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

                       "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

            }
        }

        // Add/overlay system properties on the properties from the Ant project
        Hashtable p = System.getProperties();
        for (Enumeration e = p.keys(); e.hasMoreElements();) {
            Object key = e.nextElement();
            props.put(key, p.get(key));
        }

        int returnCode = SUCCESS;
View Full Code Here

        File propsFile = createTempPropertiesFile("junit");
        cmd.createArgument().setValue(Constants.PROPSFILE
                                      + propsFile.getAbsolutePath());
        Hashtable p = getProject().getProperties();
        Properties props = new Properties();
        for (Enumeration e = p.keys(); e.hasMoreElements();) {
            Object key = e.nextElement();
            props.put(key, p.get(key));
        }
        try {
            FileOutputStream outstream = new FileOutputStream(propsFile);
View Full Code Here

        out.defaultWriteObject();

        // Remove non-serializable elements from table of properties.
        Hashtable propertyTable = properties;
        boolean propertiesCloned = false;
        Enumeration keys = propertyTable.keys();
        while(keys.hasMoreElements()) {
            Object key = keys.nextElement();
            if (!(properties.get(key) instanceof Serializable)) {
                if (!propertiesCloned) {
                    propertyTable = (Hashtable)properties.clone();
View Full Code Here

  }

  Hashtable htable = (Hashtable)sourceForProp.get(key);

  if (htable != null) {
      for (Enumeration e = htable.keys(); e.hasMoreElements(); ) {
    CaselessStringKey name = (CaselessStringKey)e.nextElement();

    int i = ((Integer)htable.get(name)).intValue();

    PropertyGenerator generator = new
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.