public class StandardDependency extends java.lang.Object implements Dependency
MAVEN_PATH_FORMAT| Constructor and Description |
|---|
StandardDependency(java.lang.String groupId,
java.lang.String artifactId,
java.lang.String version,
java.lang.String classifier,
java.lang.String hash,
java.lang.String hashingAlgorithm) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull java.lang.String |
getArtifactId()
The artifact id of the dependency.
|
java.lang.String |
getClassifier()
The classifier for the dependency artifact, if any.
|
@NotNull java.lang.String |
getGroupId()
The group id of the dependency.
|
@NotNull java.lang.String |
getHash()
The hash of the dependency, this is checked against the downloaded file.
|
@NotNull java.lang.String |
getHashingAlgorithm()
The hashing algorithm used for the
Dependency.getHash(). |
java.lang.String |
getSnapshotVersion()
The timestamped snapshot version.
|
@NotNull java.lang.String |
getVersion()
The version of the dependency.
|
boolean |
isSnapshot()
If this is a snapshot dependency.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFileName, getMavenArtifact, getMavenPath, getStoredFileNamepublic StandardDependency(java.lang.String groupId,
java.lang.String artifactId,
java.lang.String version,
java.lang.String classifier,
java.lang.String hash,
java.lang.String hashingAlgorithm)
@NotNull public @NotNull java.lang.String getGroupId()
DependencygetGroupId in interface Dependency@NotNull public @NotNull java.lang.String getArtifactId()
DependencygetArtifactId in interface Dependency@NotNull public @NotNull java.lang.String getVersion()
DependencygetVersion in interface Dependencypublic java.lang.String getClassifier()
DependencygetClassifier in interface Dependencynull.public java.lang.String getSnapshotVersion()
DependencygetSnapshotVersion in interface Dependencynull if this isn't a snapshot dependency.Dependency.isSnapshot()@NotNull public @NotNull java.lang.String getHash()
DependencygetHash in interface DependencyDependency.getHashingAlgorithm()@NotNull public @NotNull java.lang.String getHashingAlgorithm()
DependencyDependency.getHash().getHashingAlgorithm in interface DependencyDependency.getHash()public boolean isSnapshot()
DependencyisSnapshot in interface Dependency