public class ArtifactDescriptor extends Object
org.eclipse.aether.artifact.DefaultArtifact
org.eclipse.aether.graph.Dependency
Modifier and Type | Field and Description |
---|---|
protected String |
artifactId |
protected String |
classifier |
protected String |
groupId |
static Pattern |
PATTERN |
protected String |
scope |
protected String |
type |
protected String |
version |
Constructor and Description |
---|
ArtifactDescriptor() |
ArtifactDescriptor(String key) |
ArtifactDescriptor(String groupId,
String artifactId,
String version,
String type,
String classifier) |
Modifier and Type | Method and Description |
---|---|
org.eclipse.aether.artifact.Artifact |
getAetherArtifact()
Prefer use of
getDependency() if the artifact scope is needed. |
String |
getArtifactId() |
String |
getClassifier() |
org.eclipse.aether.graph.Dependency |
getDependency() |
String |
getGroupId() |
org.apache.maven.artifact.Artifact |
getMavenArtifact() |
String |
getNodeKeyPattern() |
String |
getScope() |
String |
getType() |
String |
getVersion() |
boolean |
isEmpty() |
static ArtifactDescriptor |
parseQuietly(String key) |
void |
setArtifactId(String artifactId) |
void |
setClassifier(String classifier) |
void |
setGroupId(String groupId) |
void |
setScope(String scope) |
void |
setType(String type) |
void |
setVersion(String version) |
String |
toString() |
public static final Pattern PATTERN
protected String groupId
protected String artifactId
protected String version
protected String type
protected String classifier
protected String scope
public ArtifactDescriptor()
public ArtifactDescriptor(String groupId, String artifactId, String version, String type, String classifier)
public String getNodeKeyPattern()
public org.apache.maven.artifact.Artifact getMavenArtifact()
public org.eclipse.aether.artifact.Artifact getAetherArtifact()
getDependency()
if the artifact scope is needed.public org.eclipse.aether.graph.Dependency getDependency()
public static ArtifactDescriptor parseQuietly(String key)
key
- public String getGroupId()
public void setGroupId(String groupId)
public String getArtifactId()
public void setArtifactId(String artifactId)
public String getVersion()
public void setVersion(String version)
public String getType()
public void setType(String type)
public String getClassifier()
public void setClassifier(String classifier)
public String getScope()
public void setScope(String scope)
public boolean isEmpty()
Copyright © 2016 Nuxeo SA. All Rights Reserved.