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.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 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
Copyright © 2010–2019 The Apache Software Foundation. All rights reserved.