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() |
copyProperties
protected 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 Artifact
setVersion
in class AbstractArtifact
public String getBaseVersion()
getBaseVersion
in interface Artifact
getBaseVersion
in class AbstractArtifact
public boolean isSnapshot()
isSnapshot
in interface Artifact
isSnapshot
in class AbstractArtifact
public String getClassifier()
public String getExtension()
public Artifact setFile(File file)
setFile
in interface Artifact
setFile
in class AbstractArtifact
public String getProperty(String key, String defaultValue)
getProperty
in interface Artifact
getProperty
in class AbstractArtifact
public Map<String,String> getProperties()
public Artifact setProperties(Map<String,String> properties)
setProperties
in interface Artifact
setProperties
in class AbstractArtifact
public boolean equals(Object obj)
equals
in class AbstractArtifact
public int hashCode()
hashCode
in class AbstractArtifact
public String toString()
toString
in class AbstractArtifact
Copyright © 2010–2021 The Apache Software Foundation. All rights reserved.