public abstract class DelegatingArtifact extends org.eclipse.aether.artifact.AbstractArtifact
| Modifier | Constructor and Description |
|---|---|
protected |
DelegatingArtifact(org.eclipse.aether.artifact.Artifact delegate)
Creates a new artifact instance that delegates to the specified artifact.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getArtifactId() |
java.lang.String |
getBaseVersion() |
java.lang.String |
getClassifier() |
java.lang.String |
getExtension() |
java.io.File |
getFile() |
java.lang.String |
getGroupId() |
java.util.Map<java.lang.String,java.lang.String> |
getProperties() |
java.lang.String |
getProperty(java.lang.String key,
java.lang.String defaultValue) |
java.lang.String |
getVersion() |
int |
hashCode() |
boolean |
isSnapshot() |
protected abstract DelegatingArtifact |
newInstance(org.eclipse.aether.artifact.Artifact delegate)
Creates a new artifact instance that delegates to the specified artifact.
|
org.eclipse.aether.artifact.Artifact |
setFile(java.io.File file) |
org.eclipse.aether.artifact.Artifact |
setProperties(java.util.Map<java.lang.String,java.lang.String> properties) |
org.eclipse.aether.artifact.Artifact |
setVersion(java.lang.String version) |
java.lang.String |
toString() |
protected DelegatingArtifact(org.eclipse.aether.artifact.Artifact delegate)
delegate - The artifact to delegate to, must not be null.protected abstract DelegatingArtifact newInstance(org.eclipse.aether.artifact.Artifact delegate)
delegate - The artifact to delegate to, must not be null.null.public java.lang.String getGroupId()
public java.lang.String getArtifactId()
public java.lang.String getVersion()
public org.eclipse.aether.artifact.Artifact setVersion(java.lang.String version)
setVersion in interface org.eclipse.aether.artifact.ArtifactsetVersion in class org.eclipse.aether.artifact.AbstractArtifactpublic java.lang.String getBaseVersion()
getBaseVersion in interface org.eclipse.aether.artifact.ArtifactgetBaseVersion in class org.eclipse.aether.artifact.AbstractArtifactpublic boolean isSnapshot()
isSnapshot in interface org.eclipse.aether.artifact.ArtifactisSnapshot in class org.eclipse.aether.artifact.AbstractArtifactpublic java.lang.String getClassifier()
public java.lang.String getExtension()
public java.io.File getFile()
public org.eclipse.aether.artifact.Artifact setFile(java.io.File file)
setFile in interface org.eclipse.aether.artifact.ArtifactsetFile in class org.eclipse.aether.artifact.AbstractArtifactpublic java.lang.String getProperty(java.lang.String key, java.lang.String defaultValue)
getProperty in interface org.eclipse.aether.artifact.ArtifactgetProperty in class org.eclipse.aether.artifact.AbstractArtifactpublic java.util.Map<java.lang.String,java.lang.String> getProperties()
public org.eclipse.aether.artifact.Artifact setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
setProperties in interface org.eclipse.aether.artifact.ArtifactsetProperties in class org.eclipse.aether.artifact.AbstractArtifactpublic boolean equals(java.lang.Object obj)
equals in class org.eclipse.aether.artifact.AbstractArtifactpublic int hashCode()
hashCode in class org.eclipse.aether.artifact.AbstractArtifactpublic java.lang.String toString()
toString in class org.eclipse.aether.artifact.AbstractArtifact