Examples of addAll()


Examples of org.eclipse.jgit.diff.RenameDetector.addAll()

    tw.setFilter(TreeFilter.ANY_DIFF);
    tw.reset(trees);

    List<DiffEntry> files = DiffEntry.scan(tw);
    RenameDetector rd = new RenameDetector(repository);
    rd.addAll(files);
    files = rd.compute();

    TreeFilter newFilter = oldFilter;
    for (DiffEntry ent : files) {
      if (isRename(ent) && ent.getNewPath().equals(oldFilter.getPath())) {
View Full Code Here

Examples of org.eclipse.ltk.core.refactoring.CompositeChange.addAll()

  @Override
  public Change createChange(IProgressMonitor pm) throws CoreException, OperationCanceledException {
    if(!_changes.isEmpty()){
      CompositeChange change = new CompositeChange("WGA resource changes");   
      change.addAll(_changes.toArray(new Change[0]));   
      return change;
    }   
    return null;
  }
View Full Code Here

Examples of org.eclipse.persistence.internal.queries.ContainerPolicy.addAll()

                    if (databaseRow != null) {
                        domainObjectsIn.add(buildObject(query, databaseRow, joinManager));
                        databaseRowsIn.add(databaseRow);
                    }
                }
                policy.addAll(domainObjectsIn, domainObjects, session, databaseRowsIn, query, (CacheKey)null, true);
            } else {
                boolean quickAdd = (domainObjects instanceof Collection) && !this.hasWrapperPolicy;
                for (int index = 0; index < size; index++) {
                    AbstractRecord databaseRow = (AbstractRecord)databaseRows.get(index);
                    // PERF: 1-m joining nulls out duplicate rows.
View Full Code Here

Examples of org.eclipse.persistence.platform.xml.XMLNodeList.addAll()

                    if ((nextFragment != null) && nextFragment.isAttribute() && !(value instanceof List)) {
                        elements = addElements(next, xmlField, nextElement, this, hasMore, sibling, docPresPolicy, session);
                    } else {
                        Object valueToWrite = getValueToWrite(value, xmlField, session);
                        elements = addElements(next, xmlField, nextElement, valueToWrite, !hasMore, sibling, docPresPolicy, session);
                        createdElements.addAll(elements);
                    }
                }

                nextElement = elements.item(elements.getLength() - 1);
            }
View Full Code Here

Examples of org.eclipse.persistence.sdo.helper.ListWrapper.addAll()

            ListWrapper oldValueListWrapper = (ListWrapper) oldValue;
            // 20060529: v33: Move clear() out of ListWrapper.addAll()
            // handle clearing of elements which also calls removeContainment(prop) outside of addAll()
            oldValueListWrapper.clear(updateSequence);
            // handle updateContainment and sequences inside addAll()
            oldValueListWrapper.addAll((Collection)value, updateSequence);// for non-default Pluggable impl this function is not required
        } else {
            if (property.isContainment() || isContainedByDataGraph(property)) {
                if (parentContains(value)) {
                    throw new IllegalArgumentException("Circular reference.");
                }
View Full Code Here

Examples of org.exist.dom.ExtArrayNodeSet.addAll()

    public NodeSet eval(
        final NGramIndexWorker index, final DocumentSet docs, final List<QName> qnames, final NodeSet nodeSet,
        final int axis, final int expressionId) throws XPathException {
        NodeSet result = new ExtArrayNodeSet();
        for (String s : strings) {
            result.addAll(nGramSearch.fixedStringSearch(index, docs, qnames, s, nodeSet, axis));
        }
        result.iterate(); // ensure result is ready to use
        return result;
    }
View Full Code Here

Examples of org.exist.dom.NodeSet.addAll()

    public NodeSet eval(
        final NGramIndexWorker index, final DocumentSet docs, final List<QName> qnames, final NodeSet nodeSet,
        final int axis, final int expressionId) throws XPathException {
        NodeSet result = new ExtArrayNodeSet();
        for (String s : strings) {
            result.addAll(nGramSearch.fixedStringSearch(index, docs, qnames, s, nodeSet, axis));
        }
        result.iterate(); // ensure result is ready to use
        return result;
    }
View Full Code Here

Examples of org.exist.dom.SortedNodeSet.addAll()

    if(val.isEmpty())
      {return;}
    if(Type.subTypeOf(val.getItemType(), Type.NODE) && sortExpr != null) {
      SortedNodeSet sorted = new SortedNodeSet(brokerPool, user, sortExpr, collection.getAccessContext());
      try {
        sorted.addAll(val);
      } catch (final XPathException e) {
        throw new XMLDBException(ErrorCodes.INVALID_RESOURCE,
          e.getMessage(), e);
      }
      val = sorted;
View Full Code Here

Examples of org.exist.xquery.value.Sequence.addAll()

  public Sequence eval(Sequence contextSequence, Item contextItem) throws XPathException {
    Sequence result = new ValueSequence();
   
    if (use_attribute_sets != null) {
      result.addAll(
          ((XSLContext)context).getXSLStylesheet()
            .attributeSet(use_attribute_sets, contextSequence, contextItem)
          );
    } else if (delay_use_attribute_sets != null) {
      return getXSLContext().getXSLStylesheet().attributeSet(delay_use_attribute_sets, contextSequence, contextItem);
View Full Code Here

Examples of org.exist.xquery.value.ValueSequence.addAll()

            while((entry = tis.getNextTarEntry()) != null)
            {
                Sequence processCompressedEntryResults = processCompressedEntry(entry.getName(), entry.isDirectory(), tis, filterParam, storeParam);

                results.addAll(processCompressedEntryResults);
            }

            return results;
        }
        catch(IOException ioe)
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.