public class ProjectDependencyNode extends Object
| Constructor and Description |
|---|
ProjectDependencyNode(Project project,
ProjectBuilder builder)
Represents a node in the dependency tree.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(DependencyNodeVisitor visitor)
Accepts the visitor, invoking the visit method.
|
ProjectDependencyNode |
buildNode(ArtifactCoordinates dependency)
Builds a
ProjectDependencyNode using the default builder |
Set<ProjectDependencyNode> |
getChildren(DependenciesFilter filter)
Retrieves a set containing the direct dependency nodes based on a filter.
|
Set<ArtifactCoordinates> |
getDependencies(DependenciesFilter filter)
Retrieves the direct dependencies that comply with the filter constraint
|
Project |
getProject() |
public ProjectDependencyNode(Project project, ProjectBuilder builder)
project - The project that represents the dependencybuilder - A builder to the project. It is usually implemented using build tool classes, such as MavenProjectBuilderpublic void accept(DependencyNodeVisitor visitor) throws ValidationException
visitor - A DependencyNodeVisitor implementationValidationExceptionpublic Project getProject()
public Set<ProjectDependencyNode> getChildren(DependenciesFilter filter) throws ValidationException
filter - The filter that is going to define which dependencies are going constitute the setValidationExceptionpublic Set<ArtifactCoordinates> getDependencies(DependenciesFilter filter)
filter - The filter to the dependenciespublic ProjectDependencyNode buildNode(ArtifactCoordinates dependency) throws ValidationException
ProjectDependencyNode using the default builderdependency - The dependency to be builtProjectDependencyNode containing the dependency project and its builderValidationException - If the dependency cannot be built into a projectCopyright © 2019 MuleSoft Inc. All rights reserved.