Package java.util

Examples of java.util.ArrayList.addAll()


            Enumeration e = (Enumeration) MethodUtils.invokeMethod(getTarget(), "getLoggerNames", null);
            while (e.hasMoreElements()) {
                String name = (String) e.nextElement();
                Jdk14LoggerAccessor accessor = getLogger(name);

                allHandlers.addAll(accessor.getHandlers());
            }
        } catch (Exception e) {
            log.error(getTarget() + ".getLoggerNames() failed", e);
        }
        return allHandlers;
View Full Code Here


            }

            if (sessionMatches && searchInfo.isUseAttrName()) {
                boolean attrMatches = false;
                List a = new ArrayList();
                a.addAll(searchInfo.getAttrNamePatterns());

                for (Iterator i = appSession.getAttributes().iterator(); i.hasNext();) {
                    String attrName = ((Attribute) i.next()).getName();

                    if (attrName != null) {
View Full Code Here

      InitialContext ic = CVUtility.getInitialContext();
      AdvancedSearchLocalHome home = (AdvancedSearchLocalHome) ic.lookup("local/AdvancedSearch");
      AdvancedSearchLocal remote = (AdvancedSearchLocal) home.create();
      remote.setDataSource(dataSource);
      ArrayList resultsIDs = new ArrayList();
      resultsIDs.addAll(remote.performSearch(individualID,searchVO));

      //Parse out the field Information which are fieldtableid, fieldID and fieldType
      // Field type as its own idenfication
      // for example  "6" is a phone type field. "8" is a multiple selection field type
      int fieldTableID = 0;
View Full Code Here

  public List format_photo_months(List months){
    if(months==null)
      return null;
    List new_months = new ArrayList();
    if(months.size()>0){
      new_months.addAll(months);
      final SimpleDateFormat month_fm = new SimpleDateFormat("MMM yyyy", request.getLocale());
      Calendar time = Calendar.getInstance();
      for(int i=0;i<new_months.size();i++){
        int value = ((Integer)new_months.get(i)).intValue();
        time.set(Calendar.YEAR, value / 100);
View Full Code Here

      List result = new ArrayList();
      Iterator iter = params.iterator();
      while(iter.hasNext()){
        SPParameter param = (SPParameter)iter.next();
        if(param.getResultSetColumns() != null){
          result.addAll(param.getResultSetColumns());
        }
      }
      iter = params.iterator();
      while(iter.hasNext()){
        SPParameter param = (SPParameter)iter.next();
View Full Code Here

      Statement stmnt = (Statement) stmtIter.next();
      Object newStmt = rewriteStatement(stmnt);
      if(newStmt instanceof Statement) {
        newStmts.add(newStmt);
      } else if (newStmt instanceof List) {
          newStmts.addAll((List)newStmt);
            }
        }

        block.setStatements(newStmts);
View Full Code Here

   
    public void testRemoveLastChildNode() {
        PlanNode tree = exampleTree1();
        List expectedChildren = new ArrayList();
        expectedChildren.add(tree.getFirstChild());
        expectedChildren.addAll(tree.getLastChild().getChildren());

        NodeEditor.removeChildNode(tree, tree.getLastChild());       
        List actualChildren = tree.getChildren();
       
        assertEquals("Didn't get expected children after removing last child", expectedChildren, actualChildren); //$NON-NLS-1$
View Full Code Here

          }
        }

        session.setAttribute("searchObject",searchObject);
        ArrayList resultsIDs = new ArrayList();
        resultsIDs.addAll(remoteAdvancedSearch.performSearch(individualId,searchObject));
        request.setAttribute("displayListFlag","false");
      }

      globalReplaceForm.set("replaceValue","");
      globalReplaceForm.set("replaceID","");
View Full Code Here

    ArrayList individualVOs = MergeUtil.getIndividualVOsForEntityIds(mergeIdArray, dataSource);
    // The entityVOs each have a collection of their associated MOC VOs
    // in a field.  (ContactVO.getMOC())
    ArrayList methodOfContactVOs = new ArrayList();
    for (int i = 0; i < entityVOs.size(); i++) {
      methodOfContactVOs.addAll(((EntityVO)entityVOs.get(i)).getMOC());
    }
    // only the primary address is in the ContactVO so we have to get them all.
    int mergeType = searchResult.getMergeType();
    ArrayList addressVOs = MergeUtil.getAddressVOs(mergeIdArray, mergeType, dataSource);
    // The customfields are in the ContactVO too.
View Full Code Here

  public EntityList getEntityList(int individualID, Vector v, int startAt, int endAt)
      throws CommunicationException, NamingException
  {
    // I like arraylists better than vectors... :)
    ArrayList entityIds = new ArrayList();
    entityIds.addAll(v);
    StringBuffer primaryIDs = new StringBuffer();
    boolean flag = true;
    for (int i = 0; i < entityIds.size(); i++) {
      if (flag) {
        flag = false;
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.