org.apache.maven.lifecycle.internal
Class ProjectBuildList

java.lang.Object
  extended by org.apache.maven.lifecycle.internal.ProjectBuildList
All Implemented Interfaces:
Iterable<ProjectSegment>

public class ProjectBuildList
extends Object
implements Iterable<ProjectSegment>

A list of project segments, ordered so that all ProjectSegments from first TaskSegment come before any subsequent TaskSegments.

Since:
3.0
Author:
Kristian Rosenvold

NOTE: This class is not part of any public api and can be changed or deleted without prior notice.


Constructor Summary
ProjectBuildList(List<ProjectSegment> items)
           
 
Method Summary
 void closeAll()
           
 ProjectSegment findByMavenProject(MavenProject mavenProject)
          Finds the first ProjectSegment matching the supplied project
 ProjectBuildList getByTaskSegment(TaskSegment taskSegment)
          Returns aProjectBuildList that contains only items for the specified taskSegment
 Set<String> getReactorProjectKeys()
           
 boolean isEmpty()
           
 Iterator<ProjectSegment> iterator()
           
 Map<MavenProject,ProjectSegment> selectSegment(TaskSegment taskSegment)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectBuildList

public ProjectBuildList(List<ProjectSegment> items)
Method Detail

getByTaskSegment

public ProjectBuildList getByTaskSegment(TaskSegment taskSegment)
Returns aProjectBuildList that contains only items for the specified taskSegment

Parameters:
taskSegment - the requested tasksegment
Returns:
a project build list for the supplied task segment

selectSegment

public Map<MavenProject,ProjectSegment> selectSegment(TaskSegment taskSegment)

findByMavenProject

public ProjectSegment findByMavenProject(MavenProject mavenProject)
Finds the first ProjectSegment matching the supplied project

Parameters:
mavenProject - the requested project
Returns:
The projectSegment or null.

iterator

public Iterator<ProjectSegment> iterator()
Specified by:
iterator in interface Iterable<ProjectSegment>

closeAll

public void closeAll()

size

public int size()

getReactorProjectKeys

public Set<String> getReactorProjectKeys()

isEmpty

public boolean isEmpty()


Copyright © 2001–2013 The Apache Software Foundation. All rights reserved.