|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sonatype.aether.util.artifact.AbstractArtifact
org.sonatype.aether.util.artifact.SubArtifact
public final class SubArtifact
An artifact whose identity is derived from another artifact. Note: Instances of this class are immutable and the exposed mutators return new objects rather than changing the current instance.
| Constructor Summary | |
|---|---|
SubArtifact(Artifact mainArtifact,
String classifier,
String extension)
Creates a new sub artifact. |
|
SubArtifact(Artifact mainArtifact,
String classifier,
String extension,
File file)
Creates a new sub artifact. |
|
SubArtifact(Artifact mainArtifact,
String classifier,
String extension,
Map<String,String> properties)
Creates a new sub artifact. |
|
SubArtifact(Artifact mainArtifact,
String classifier,
String extension,
Map<String,String> properties,
File file)
Creates a new sub artifact. |
|
| Method Summary | |
|---|---|
String |
getArtifactId()
|
String |
getBaseVersion()
|
String |
getClassifier()
|
String |
getExtension()
|
File |
getFile()
|
String |
getGroupId()
|
Map<String,String> |
getProperties()
|
String |
getProperty(String key,
String defaultValue)
|
String |
getVersion()
|
boolean |
isSnapshot()
|
Artifact |
setFile(File file)
|
Artifact |
setProperties(Map<String,String> properties)
|
Artifact |
setVersion(String version)
|
| Methods inherited from class org.sonatype.aether.util.artifact.AbstractArtifact |
|---|
equals, hashCode, isSnapshot, newInstance, toBaseVersion, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SubArtifact(Artifact mainArtifact,
String classifier,
String extension)
mainArtifact - The artifact from which to derive the identity, must not be null.classifier - The classifier for this artifact, may be null if none.extension - The extension for this artifact, may be null if none.
public SubArtifact(Artifact mainArtifact,
String classifier,
String extension,
File file)
mainArtifact - The artifact from which to derive the identity, must not be null.classifier - The classifier for this artifact, may be null if none.extension - The extension for this artifact, may be null if none.file - The file for this artifact, may be null if unresolved.
public SubArtifact(Artifact mainArtifact,
String classifier,
String extension,
Map<String,String> properties)
mainArtifact - The artifact from which to derive the identity, must not be null.classifier - The classifier for this artifact, may be null if none.extension - The extension for this artifact, may be null if none.properties - The properties of the artifact, may be null.
public SubArtifact(Artifact mainArtifact,
String classifier,
String extension,
Map<String,String> properties,
File file)
mainArtifact - The artifact from which to derive the identity, must not be null.classifier - The classifier for this artifact, may be null if none.extension - The extension for this artifact, may be null if none.properties - The properties of the artifact, may be null.file - The file for this artifact, may be null if unresolved.| Method Detail |
|---|
public String getGroupId()
public String getArtifactId()
public String getVersion()
public Artifact setVersion(String version)
setVersion in interface ArtifactsetVersion in class AbstractArtifactpublic String getBaseVersion()
public boolean isSnapshot()
public String getClassifier()
public String getExtension()
public File getFile()
public Artifact setFile(File file)
setFile in interface ArtifactsetFile in class AbstractArtifact
public String getProperty(String key,
String defaultValue)
public Map<String,String> getProperties()
public Artifact setProperties(Map<String,String> properties)
setProperties in interface ArtifactsetProperties in class AbstractArtifact
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||