class FilteredProjectDependencyGraph extends java.lang.Object implements ProjectDependencyGraph
Modifier and Type | Field and Description |
---|---|
private ProjectDependencyGraph |
projectDependencyGraph |
private java.util.List<MavenProject> |
sortedProjects |
private java.util.Map<MavenProject,?> |
whiteList |
Constructor and Description |
---|
FilteredProjectDependencyGraph(ProjectDependencyGraph projectDependencyGraph,
java.util.Collection<? extends MavenProject> whiteList)
Creates a new project dependency graph from the specified graph.
|
Modifier and Type | Method and Description |
---|---|
private java.util.List<MavenProject> |
applyFilter(java.util.Collection<? extends MavenProject> projects) |
java.util.List<MavenProject> |
getAllProjects()
Gets all collected projects.
|
java.util.List<MavenProject> |
getDownstreamProjects(MavenProject project,
boolean transitive)
Gets the downstream projects of the specified project.
|
java.util.List<MavenProject> |
getSortedProjects()
Gets all projects in their intended build order, i.e.
|
java.util.List<MavenProject> |
getUpstreamProjects(MavenProject project,
boolean transitive)
Gets the upstream projects of the specified project.
|
java.lang.String |
toString() |
private ProjectDependencyGraph projectDependencyGraph
private java.util.Map<MavenProject,?> whiteList
private java.util.List<MavenProject> sortedProjects
FilteredProjectDependencyGraph(ProjectDependencyGraph projectDependencyGraph, java.util.Collection<? extends MavenProject> whiteList)
projectDependencyGraph
- The project dependency graph to create a sub view from, must not be null
.whiteList
- The projects on which the dependency view should focus, must not be null
.public java.util.List<MavenProject> getAllProjects()
ProjectDependencyGraph
getAllProjects
in interface ProjectDependencyGraph
public java.util.List<MavenProject> getSortedProjects()
ProjectDependencyGraph
getSortedProjects
in interface ProjectDependencyGraph
null
.public java.util.List<MavenProject> getDownstreamProjects(MavenProject project, boolean transitive)
ProjectDependencyGraph
getDownstreamProjects
in interface ProjectDependencyGraph
project
- The project whose downstream projects should be retrieved, must not be null
.transitive
- A flag whether to retrieve all direct and indirect downstream projects or just the immediate
downstream projects.null
.public java.util.List<MavenProject> getUpstreamProjects(MavenProject project, boolean transitive)
ProjectDependencyGraph
getUpstreamProjects
in interface ProjectDependencyGraph
project
- The project whose upstream projects should be retrieved, must not be null
.transitive
- A flag whether to retrieve all direct and indirect upstream projects or just the immediate
upstream projects.null
.private java.util.List<MavenProject> applyFilter(java.util.Collection<? extends MavenProject> projects)
public java.lang.String toString()
toString
in class java.lang.Object