Package java.util

Examples of java.util.HashMap.keySet()


      HashMap assigned = (HashMap)tvo.getAssignedTo();
      Iterator ite = null;
      if (assigned != null)
      {
        ite = assigned.keySet().iterator();
        while (ite.hasNext())
        {
          int assignedTo = ((Integer)ite.next()).intValue();

          dl.setSql("projecttask.addtaskassigned");
View Full Code Here


         return null;
      }

      Map<String, String> filteredAttrs = new HashMap<String, String>();

      for (String key : attrs.keySet())
      {
         // Check if attribute is part of User interface data
         if (!UserDAOImpl.USER_NON_PROFILE_KEYS.contains(key))
         {
            Object value = attrs.get(key).getValue();
View Full Code Here

                String name = PdfName.decodeName(((PdfName)it.next()).toString());
                names.put(name, null);
            }
        }
        String out[] = new String[names.size()];
        return (String[])names.keySet().toArray(out);
    }
   
    private String[] getListOption(String fieldName, int idx) {
        Item fd = getFieldItem(fieldName);
        if (fd == null)
View Full Code Here

     * @throws IOException on error
     * @throws DocumentException on error
     */   
    public void setFields(FdfReader fdf) throws IOException, DocumentException {
        HashMap fd = fdf.getFields();
        for (Iterator i = fd.keySet().iterator(); i.hasNext();) {
            String f = (String)i.next();
            String v = fdf.getFieldValue(f);
            if (v != null)
                setField(f, v);
        }
View Full Code Here

     * @throws IOException on error
     * @throws DocumentException on error
     */   
    public void setFields(XfdfReader xfdf) throws IOException, DocumentException {
        HashMap fd = xfdf.getFields();
        for (Iterator i = fd.keySet().iterator(); i.hasNext();) {
            String f = (String)i.next();
            String v = xfdf.getFieldValue(f);
            if (v != null)
                setField(f, v);
            List l = xfdf.getListValues(f);
View Full Code Here

    ArrayList unscheduledDisplayList = new ArrayList();
    // pull out the unscheduled activities from that stupid map retreived
    // earlier
    HashMap unscheduledActivityMap = (HashMap)calendarMap.get("unscheduledactivity");
    Set unscheduledKeys = unscheduledActivityMap.keySet();
    it = unscheduledKeys.iterator();
    while (it.hasNext()) {
      CalendarActivityObject activity = (CalendarActivityObject)unscheduledActivityMap.get(it
          .next());
      String activityType = activity.getActivityType();
View Full Code Here

      // get the user's list of folders for this account
      HashMap folderList = remote.getFolderList(accountID.intValue());

      // remove the "root" folder from the list
      Set keySet = folderList.keySet();
      Iterator iter = keySet.iterator();
      while (iter.hasNext()) {
        Number key = (Number)iter.next();
        String value = (String)folderList.get(key);
        if (value.equals("root")) {
View Full Code Here

       
        //�����ĸ�������
        MultiFilter multiFilter = null;
        HashMap conds = params.getConditions();
    if(conds!=null){
      Iterator keys = conds.keySet().iterator();
      while(keys.hasNext()){
        if(multiFilter == null)
              multiFilter = new MultiFilter(0);
        String key = (String)keys.next();
        multiFilter.add(new FieldFilter(key,conds.get(key).toString()));
View Full Code Here

        PdfDictionary js = (PdfDictionary)getPdfObjectRelease(names.get(PdfName.JAVASCRIPT));
        if (js == null)
            return null;
        HashMap jscript = PdfNameTree.readTree(js);
        String sortedNames[] = new String[jscript.size()];
        sortedNames = (String[])jscript.keySet().toArray(sortedNames);
        Arrays.sort(sortedNames);
        StringBuffer buf = new StringBuffer();
        for (int k = 0; k < sortedNames.length; ++k) {
            PdfDictionary j = (PdfDictionary)getPdfObjectRelease((PdfIndirectReference)jscript.get(sortedNames[k]));
            if (j == null)
View Full Code Here

      HashMap fieldHashMap = mfrx.getFieldRights(moduleName);

      if (fieldHashMap != null)
      {
        Iterator fieldKeys = fieldHashMap.keySet().iterator();
        while (fieldKeys.hasNext())
        {
          String fieldName = (String)fieldKeys.next();
          Integer privilegeInteger = (Integer)fieldHashMap.get(fieldName);
          if (privilegeInteger == null)
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.