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(Object obj) |
String |
getArtifactId() |
String |
getBaseVersion() |
String |
getClassifier() |
String |
getExtension() |
File |
getFile() |
String |
getGroupId() |
Map<String,String> |
getProperties() |
String |
getProperty(String key,
String defaultValue) |
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(File file) |
org.eclipse.aether.artifact.Artifact |
setProperties(Map<String,String> properties) |
org.eclipse.aether.artifact.Artifact |
setVersion(String version) |
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 String getGroupId()
public String getArtifactId()
public String getVersion()
public org.eclipse.aether.artifact.Artifact setVersion(String version)
setVersion
in interface org.eclipse.aether.artifact.Artifact
setVersion
in class org.eclipse.aether.artifact.AbstractArtifact
public String getBaseVersion()
getBaseVersion
in interface org.eclipse.aether.artifact.Artifact
getBaseVersion
in class org.eclipse.aether.artifact.AbstractArtifact
public boolean isSnapshot()
isSnapshot
in interface org.eclipse.aether.artifact.Artifact
isSnapshot
in class org.eclipse.aether.artifact.AbstractArtifact
public String getClassifier()
public String getExtension()
public org.eclipse.aether.artifact.Artifact setFile(File file)
setFile
in interface org.eclipse.aether.artifact.Artifact
setFile
in class org.eclipse.aether.artifact.AbstractArtifact
public String getProperty(String key, String defaultValue)
getProperty
in interface org.eclipse.aether.artifact.Artifact
getProperty
in class org.eclipse.aether.artifact.AbstractArtifact
public Map<String,String> getProperties()
public org.eclipse.aether.artifact.Artifact setProperties(Map<String,String> properties)
setProperties
in interface org.eclipse.aether.artifact.Artifact
setProperties
in class org.eclipse.aether.artifact.AbstractArtifact
public boolean equals(Object obj)
equals
in class org.eclipse.aether.artifact.AbstractArtifact
public int hashCode()
hashCode
in class org.eclipse.aether.artifact.AbstractArtifact
Copyright © 2010–2019 The Apache Software Foundation. All rights reserved.