Package java.util

Examples of java.util.HashMap.keySet()


    }

    // weitere Parameter anhaengen
    HashMap parameters = element.getParameters();
    if(parameters != null) {
      for(Iterator it = parameters.keySet().iterator(); it.hasNext(); ) {
        String name = (String)it.next();
        url.append(and + name + "=" + (String)parameters.get(name));
        and = "&";
      }
    }
View Full Code Here


                    if (this.getConnection().getResultSet() != null) {
                      String warning = "";
                      HashMap result = null;
                      while( !(result = this.getConnection().get()).isEmpty()) {
                        warning = "execution terminated with warning:";
                        Iterator resultIterator = result.keySet().iterator();
                        while(resultIterator.hasNext()) {
                          String key = (String) resultIterator.next();
                          if (key == null || key.length() == 0) continue;
                          warning += " " + key + "=" + (String) result.get(key).toString();
                        }
View Full Code Here

          return;
        }
      }

      if (restrictObject != null && !restrictObject.isEmpty()) {
        for (Iterator it = restrictObject.keySet().iterator(); it.hasNext();) {
          String restrictName = it.next().toString();
          String restrictValue = (String) restrictObject.get(restrictName);

          if (_log != null) _log.debug3("checking for element: " + restrictName + "=" + restrictValue);
View Full Code Here

            return;
          }
        }

        if (restrictObject != null && !restrictObject.isEmpty()) {
          for (Iterator it = restrictObject.keySet().iterator(); it.hasNext();) {
            String restrictName = it.next().toString();
            String restrictValue = (String) restrictObject.get(restrictName);

            if (_log != null) _log.debug3("checking for element: " + restrictName + "=" + restrictValue);
View Full Code Here

          return;
        }
      }

      if (restrictObject != null && !restrictObject.isEmpty()) {
        for (Iterator it = restrictObject.keySet().iterator(); it.hasNext();) {
          String restrictName = it.next().toString();
          String restrictValue = (String) restrictObject.get(restrictName);

          if (_log != null) _log.debug3("checking for element: " + restrictName + "=" + restrictValue);
View Full Code Here

            Tracing.logAudit("\t*** NO *** persistent lock for user <"+folderOfUser.getName()+"> and entry <"+oresId.toString()+"> ! Cause: Entry not found!",this.getClass());
          }
        }
      }
      //write to the audit log which qti editor sessions are problematic
      Set keys = logmsg.keySet();
      if(keys!=null && keys.size()>0){
        Tracing.logAudit("List of (colliding) QTI Editor Sessions.",this.getClass());
        Tracing.logAudit("(colliding if more then one user is listed on the same resource)",this.getClass());
        Tracing.logAudit("\tQTI Resource id\t[Repository entry ] <list of users, where the first one holds a lock now>",this.getClass());
        for (Iterator iter = keys.iterator(); iter.hasNext();) {
View Full Code Here

              HashMap result = null;
              while( !(result = localConnection.get()).isEmpty()) {
                String orderParamKey = "";
                int columnCount =0;
                warning = "execution terminated with warning:";
                Iterator resultIterator = result.keySet().iterator();
                boolean resultParametersSet = false;               
                while(resultIterator.hasNext()) {
                  columnCount++;
                  String key = (String) resultIterator.next();
                  if (key == null || key.length() == 0) continue;
View Full Code Here

      ArrayList arrayList = new ArrayList();
     arrayList = conn.getArray(selStr);
     Iterator resultset = arrayList.iterator();
     if (resultset.hasNext()) {
      rec = (HashMap) resultset.next();
      Iterator fieldnames = rec.keySet().iterator();
      while (fieldnames.hasNext()) {
         String f = fieldnames.next().toString();
         if (!f.equals("object_path") && !f.equals("cdata") && !f.equals("parent_id") && !f.equals("pk_id") && !f.equals("object_id") && rec.get(f) != null && !rec.get(f).equals("")) {
          attr += f;
          attr += "=\"" + rec.get(f) + "\"" + " " ;
View Full Code Here


      if(container.getCurrentTab().getData("details_parameter") != null) {
        HashMap h = new HashMap();
        h = (HashMap)container.getCurrentTab().getData("details_parameter");
        Iterator it = h.keySet().iterator();
        while(it.hasNext()) {
          Element jobChain = (Element)it.next();
          String configFilename = h.get(jobChain).toString();
          File configFile = new File(configFilename);
          if(configFile.exists()) {
View Full Code Here

      ArrayList arrayList = new ArrayList();
      arrayList = this.getConnection().getArray(selStr);
      Iterator resultset = arrayList.iterator();
      if (resultset.hasNext()) {
        rec = (HashMap) resultset.next();
        Iterator fieldnames = rec.keySet().iterator();
        while (fieldnames.hasNext()) {
          String f = fieldnames.next().toString();
          if (!f.equals("object_path") && !f.equals("cdata") && !f.equals("parent_id") && !f.equals("object_id") && rec.get(f) != null
              && !rec.get(f).equals("")) {
            attr += f;
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.