Package java.util

Examples of java.util.Set.addAll()


                    } catch (MalformedURLException e) {
                        e.printStackTrace();
                    }

                    // Iterate on children
                    res.addAll(getHelpDirectories(node.getChildren()))
                }
            }
        }       
        return res;
    }
View Full Code Here


    if ((this instanceof NodeForFunctionCall) && (((NodeForFunctionCall)this).implementation instanceof VariableDefinition))
      ret.add(((NodeForFunctionCall)this).implementation);

    for (int i=0; i<this.jjtGetNumChildren(); ++i) {
      Node n = jjtGetChild(i);
      if (n instanceof ExpressionNode) ret.addAll(((ExpressionNode)n).getVariables());
    }
   
    return ret;
  }
View Full Code Here

     */
    protected Collection handleGetAllParents()
    {
        Set allParents = new LinkedHashSet();
        final Collection parents = this.getGeneralizations();
        allParents.addAll(parents);
        for (final Iterator iterator = parents.iterator(); iterator.hasNext();)
        {
            final Object object = iterator.next();
            if (object instanceof Metafacade)
            {
View Full Code Here

        {
            final Object object = iterator.next();
            if (object instanceof Metafacade)
            {
                final Metafacade metafacade = (Metafacade)object;
                allParents.addAll(metafacade.getAllParents());   
            }
        }
        return allParents;
    }
}
View Full Code Here

    {
        for (final Iterator iterator = projects.iterator(); iterator.hasNext();)
        {
            final MavenProject project = (MavenProject)iterator.next();
            final Set compileSourceRoots = new LinkedHashSet(project.getCompileSourceRoots());
            compileSourceRoots.addAll(this.getExtraSourceDirectories(project));
            final String testSourceDirectory = project.getBuild().getTestSourceDirectory();
            if (testSourceDirectory != null && testSourceDirectory.trim().length() > 0)
            {
                compileSourceRoots.add(testSourceDirectory);
            }
View Full Code Here

                            artifact);
                    this.bundleFile(
                        artifact,
                        repositoryPom,
                        distributionPom);
                    artifacts.addAll(project.createArtifacts(
                            artifactFactory,
                            null,
                            null));
                }
View Full Code Here

                        this.project.getArtifact(),
                        this.project.getRemoteArtifactRepositories(),
                        this.localRepository,
                        this.artifactMetadataSource);

                artifacts.addAll(result.getArtifacts());

                // - remove the project artifacts
                for (final Iterator iterator = projects.iterator(); iterator.hasNext();)
                {
                    final MavenProject project = (MavenProject)iterator.next();
View Full Code Here

        Collection incoming = this.getIncoming();

        for (final Iterator incomingIterator = incoming.iterator(); incomingIterator.hasNext();)
        {
            StrutsForward forward = (StrutsForward)incomingIterator.next();
            actions.addAll(forward.getActions());
        }
        return new ArrayList(actions);
    }
}
View Full Code Here

                            }
                        }
                    }

                    final Set classpathElements = new LinkedHashSet(this.project.getRuntimeClasspathElements());
                    classpathElements.addAll(this.getProvidedClasspathElements());
                    this.initializeClasspathFromClassPathElements(classpathElements);
                    final Class type = (Class)tasksMap.get(task);
                    if (type == null)
                    {
                        throw new MojoExecutionException("'" + task + "' is not a valid task, valid types are: " +
View Full Code Here

    protected java.util.Collection handleGetAllSpecializations()
    {
        final Set allSpecializations = new LinkedHashSet();
        if (this.getSpecializations() != null)
        {
            allSpecializations.addAll(this.getSpecializations());
            for (final Iterator iterator = this.getSpecializations().iterator(); iterator.hasNext();)
            {
                final GeneralizableElementFacade element = (GeneralizableElementFacade)iterator.next();
                allSpecializations.addAll(element.getAllSpecializations());
            }
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.