public class Artifact
extends java.lang.Object
implements java.lang.Comparable
Constructor and Description |
---|
Artifact(Path path,
java.lang.String org,
java.lang.String module,
java.lang.String name,
ArtifactVersion version,
ArtifactDependency parent,
java.util.ArrayList<ArtifactDependency> dependencyList) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object o) |
ArtifactDependency[] |
getDependencies()
Returns the artifact's dependencies
|
java.lang.String |
getName()
Returns the artifact's name
|
java.lang.String |
getOrg()
Returns the artifact's owning organization (groupId)
|
ArtifactDependency |
getParent()
Returns the artifact's parent
|
Path |
getPath()
Returns the artifact's path
|
ArtifactVersion |
getVersion()
Returns the artifact's version
|
boolean |
isMatch(ArtifactDependency dependency)
Returns true if the artifact matches the dependency
|
boolean |
isSameArtifact(Artifact artifact) |
java.lang.String |
toString() |
public Artifact(Path path, java.lang.String org, java.lang.String module, java.lang.String name, ArtifactVersion version, ArtifactDependency parent, java.util.ArrayList<ArtifactDependency> dependencyList)
public Path getPath()
public java.lang.String getOrg()
public java.lang.String getName()
public ArtifactVersion getVersion()
public ArtifactDependency getParent()
public ArtifactDependency[] getDependencies()
public boolean isSameArtifact(Artifact artifact)
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public boolean isMatch(ArtifactDependency dependency)
public java.lang.String toString()
toString
in class java.lang.Object