public class GraphNode extends Object
| Constructor and Description |
|---|
GraphNode(Boundary belongsTo,
org.apache.maven.artifact.Artifact artifact) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDependency(GraphNode otherGraphNode)
Adds a dependency of this node to another node.
|
void |
addModule(String moduleKey)
Adds a module key to the list of modules of this node.
|
boolean |
equals(Object o) |
org.apache.maven.artifact.Artifact |
getArtifact() |
Boundary |
getBelongsTo() |
Set<GraphNode> |
getDependsOn() |
String |
getKey()
Gets the key of this node, in the format GROUPID:ARTIFACTID
|
Set<String> |
getModules() |
int |
hashCode() |
boolean |
isNodeMyModule(GraphNode graphNode) |
void |
mergeDependencies(Set<GraphNode> otherDependencies)
Merge the dependencies of this object with a set of other dependencies
|
void |
setArtifact(org.apache.maven.artifact.Artifact artifact) |
public GraphNode(Boundary belongsTo, org.apache.maven.artifact.Artifact artifact)
public void addModule(String moduleKey)
moduleKey - the key in format GROUPID:ARTIFACTIDpublic void addDependency(GraphNode otherGraphNode)
otherGraphNode - the other nodepublic void mergeDependencies(Set<GraphNode> otherDependencies)
otherDependencies - set of dependencies to mergepublic String getKey()
public Boundary getBelongsTo()
public org.apache.maven.artifact.Artifact getArtifact()
public void setArtifact(org.apache.maven.artifact.Artifact artifact)
public boolean isNodeMyModule(GraphNode graphNode)
Copyright © 2019 Atlassian. All rights reserved.