Package java.util

Examples of java.util.HashMap.containsKey()


           {
             hm = (HashMap) it.next();
           }
           if (hm != null)
           {
             if (hm.containsKey("extid"))
             {
               extid = (String) hm.get("extid");
             }
           }
         }catch(Exception e)
View Full Code Here


     * @param af the fields
     * @return the complete name or <CODE>null</CODE> if not found
     */
    public String findFieldName(String name, AcroFields af) {
        HashMap items = af.getFields();
        if (items.containsKey(name))
            return name;
        if (acroFieldsSom == null) {
            acroFieldsSom = new AcroFieldsSearch(items.keySet());
        }
        if (acroFieldsSom.getAcroShort2LongName().containsKey(name))
View Full Code Here

        for (Iterator it = fs.entrySet().iterator(); it.hasNext();) {
            Map.Entry entry = (Map.Entry) it.next();
            String name = (String) entry.getKey();
            int k = 0;
            String nn = name;
            while (old.containsKey(nn)) {
                ++k;
                nn += " " + k;
            }
            old.put(nn, entry.getValue());
        }
View Full Code Here

          key = layer.getAsString(PdfName.NAME).toString();
        }
        else {
          key = layer.getTitle();
        }
        if (map.containsKey(key)) {
          int seq = 2;
          String tmp = key + "(" + seq + ")";
          while (map.containsKey(tmp)) {
            seq++;
            tmp = key + "(" + seq + ")";
View Full Code Here

          key = layer.getTitle();
        }
        if (map.containsKey(key)) {
          int seq = 2;
          String tmp = key + "(" + seq + ")";
          while (map.containsKey(tmp)) {
            seq++;
            tmp = key + "(" + seq + ")";
          }
          key = tmp;
        }
View Full Code Here

  {
    int retVal = 0;
    if (fieldRights != null) {
      if (fieldRights.containsKey(moduleName)) {
        HashMap flr = (HashMap)fieldRights.get(moduleName);
        if (flr.containsKey(fieldName)) {
          // delete right consider as update
          retVal = ((Integer)flr.get(fieldName)).intValue();
        } else {
          retVal = 0;
        }
View Full Code Here

  {
    boolean retVal = false;
    if (fieldRights != null) {
      if (fieldRights.containsKey(moduleName)) {
        HashMap flr = (HashMap)fieldRights.get(moduleName);
        if (flr.containsKey(fieldName)) {
          // delete right consider as update
          retVal = (((Integer)flr.get(fieldName)).intValue() <= checkVal);
        } else {
          retVal = true;
        }
View Full Code Here

      }
      GroupVO groupVOReference = remote.getGroup(individualId, groupId);

      int fieldRight = 0;

      if (groupFieldRights != null && groupFieldRights.containsKey("groupdescription")) {
        fieldRight = ((Number)groupFieldRights.get("groupdescription")).intValue();
        if (fieldRight == ModuleFieldRightMatrix.NONE_RIGHT || fieldRight == ModuleFieldRightMatrix.VIEW_RIGHT) {
          this.setDescription(groupVOReference.getDescription());
        } else {
          this.setDescription((String)dynaForm.get("groupdescription"));
View Full Code Here

        } else {
          this.setDescription((String)dynaForm.get("groupdescription"));
        }
      }
      fieldRight = 0;
      if (groupFieldRights != null && groupFieldRights.containsKey("groupname")) {
        fieldRight = ((Number)groupFieldRights.get("groupname")).intValue();
        if (fieldRight == ModuleFieldRightMatrix.NONE_RIGHT || fieldRight == ModuleFieldRightMatrix.VIEW_RIGHT) {
          this.setGroupName(groupVOReference.getGroupName());
        } else {
          this.setGroupName((String)dynaForm.get("groupname"));
View Full Code Here

        } else {
          this.setGroupName((String)dynaForm.get("groupname"));
        }
      }
      fieldRight = 0;
      if (groupFieldRights != null && groupFieldRights.containsKey("owner")) {
        fieldRight = ((Number)groupFieldRights.get("owner")).intValue();
        if (fieldRight == ModuleFieldRightMatrix.NONE_RIGHT || fieldRight == ModuleFieldRightMatrix.VIEW_RIGHT) {
          this.setOwner(groupVOReference.getOwner());
        } else {
          this.setOwner(Integer.parseInt((String)dynaForm.get("owner")));
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.