public final class SubArtifact
extends org.eclipse.aether.artifact.AbstractArtifact
| Constructor and Description |
|---|
SubArtifact(org.eclipse.aether.artifact.Artifact mainArtifact,
String classifier,
String extension)
Creates a new sub artifact.
|
SubArtifact(org.eclipse.aether.artifact.Artifact mainArtifact,
String classifier,
String extension,
File file)
Creates a new sub artifact.
|
SubArtifact(org.eclipse.aether.artifact.Artifact mainArtifact,
String classifier,
String extension,
Map<String,String> properties)
Creates a new sub artifact.
|
SubArtifact(org.eclipse.aether.artifact.Artifact mainArtifact,
String classifier,
String extension,
Map<String,String> properties,
File file)
Creates a new sub artifact.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getArtifactId() |
String |
getBaseVersion() |
String |
getClassifier() |
String |
getExtension() |
File |
getFile() |
String |
getGroupId() |
Map<String,String> |
getProperties() |
String |
getVersion() |
boolean |
isSnapshot() |
org.eclipse.aether.artifact.Artifact |
setFile(File file) |
org.eclipse.aether.artifact.Artifact |
setProperties(Map<String,String> properties) |
public SubArtifact(org.eclipse.aether.artifact.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(org.eclipse.aether.artifact.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(org.eclipse.aether.artifact.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(org.eclipse.aether.artifact.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.public String getGroupId()
public String getArtifactId()
public String getVersion()
public 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 String getClassifier()
public String getExtension()
public File getFile()
public org.eclipse.aether.artifact.Artifact setFile(File file)
setFile in interface org.eclipse.aether.artifact.ArtifactsetFile in class org.eclipse.aether.artifact.AbstractArtifactCopyright © 2010-2015 The Eclipse Foundation. All Rights Reserved.