public abstract class DelegatingArtifact extends AbstractArtifact
| Modifier | Constructor and Description |
|---|---|
protected |
DelegatingArtifact(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(Artifact delegate)
Creates a new artifact instance that delegates to the specified artifact.
|
Artifact |
setFile(File file) |
Artifact |
setProperties(Map<String,String> properties) |
Artifact |
setVersion(String version) |
String |
toString() |
copyPropertiesprotected DelegatingArtifact(Artifact delegate)
delegate - The artifact to delegate to, must not be null.protected abstract DelegatingArtifact newInstance(Artifact delegate)
delegate - The artifact to delegate to, must not be null.null.public String getGroupId()
public String getArtifactId()
public String getVersion()
public Artifact setVersion(String version)
setVersion in interface ArtifactsetVersion in class AbstractArtifactpublic String getBaseVersion()
getBaseVersion in interface ArtifactgetBaseVersion in class AbstractArtifactpublic boolean isSnapshot()
isSnapshot in interface ArtifactisSnapshot in class AbstractArtifactpublic String getClassifier()
public String getExtension()
public Artifact setFile(File file)
setFile in interface ArtifactsetFile in class AbstractArtifactpublic String getProperty(String key, String defaultValue)
getProperty in interface ArtifactgetProperty in class AbstractArtifactpublic Map<String,String> getProperties()
public Artifact setProperties(Map<String,String> properties)
setProperties in interface ArtifactsetProperties in class AbstractArtifactpublic boolean equals(Object obj)
equals in class AbstractArtifactpublic int hashCode()
hashCode in class AbstractArtifactpublic String toString()
toString in class AbstractArtifactCopyright © 2010–2021 The Apache Software Foundation. All rights reserved.