public class MavenArtifactInfoImpl extends Object implements MavenArtifactInfo
MavenArtifactInfo.| Modifier and Type | Field and Description |
|---|---|
protected MavenArtifactInfo[] |
dependencies |
protected String |
extension |
protected MavenCoordinate |
mavenCoordinate |
protected String |
resolvedVersion |
protected ScopeType |
scopeType |
protected boolean |
snapshotVersion |
| Modifier | Constructor and Description |
|---|---|
protected |
MavenArtifactInfoImpl(org.eclipse.aether.artifact.Artifact artifact,
ScopeType scopeType,
List<org.eclipse.aether.graph.DependencyNode> children) |
protected |
MavenArtifactInfoImpl(MavenCoordinate mavenCoordinate,
String resolvedVersion,
boolean snapshotVersion,
String extension,
ScopeType scopeType,
MavenArtifactInfo[] dependencies) |
| Modifier and Type | Method and Description |
|---|---|
MavenCoordinate |
getCoordinate()
Returns the defined coordinate (i.e.
|
MavenArtifactInfo[] |
getDependencies()
Returns artifacts dependencies.
|
String |
getExtension()
Returns the file extension of this artifact, ie.
|
String |
getResolvedVersion()
Returns the resolved "version" portion of this artifact's coordinates; SNAPSHOTs may declare a version field (as
represented by
VersionedMavenCoordinate#getVersion(), which must resolve to a versioned snapshot version
number. |
ScopeType |
getScope() |
boolean |
isSnapshotVersion()
Returns whether or not this artifact is using a SNAPSHOT version.
|
protected MavenArtifactInfo[] |
parseDependencies(List<org.eclipse.aether.graph.DependencyNode> children)
Produces MavenArtifactInfo array from List of DependencyNode's.
|
String |
toString() |
protected final MavenCoordinate mavenCoordinate
protected final String resolvedVersion
protected final boolean snapshotVersion
protected final String extension
protected final ScopeType scopeType
protected final MavenArtifactInfo[] dependencies
protected MavenArtifactInfoImpl(MavenCoordinate mavenCoordinate, String resolvedVersion, boolean snapshotVersion, String extension, ScopeType scopeType, MavenArtifactInfo[] dependencies)
protected MavenArtifactInfo[] parseDependencies(List<org.eclipse.aether.graph.DependencyNode> children)
children - public MavenCoordinate getCoordinate()
getCoordinate in interface MavenArtifactInfoorg.jboss.shrinkwrap.resolver.api.maven.MavenResolvedArtifactImpl#getCoordinate()public String getResolvedVersion()
VersionedMavenCoordinate#getVersion(), which must resolve to a versioned snapshot version
number. That resolved version number is reflected by this field. In the case of true versions (ie.
non-SNAPSHOTs), this call will be equal to VersionedMavenCoordinate#getVersion().getResolvedVersion in interface MavenArtifactInfoMavenArtifactInfo.getResolvedVersion()public boolean isSnapshotVersion()
isSnapshotVersion in interface MavenArtifactInfoMavenArtifactInfo.isSnapshotVersion()public String getExtension()
getExtension in interface MavenArtifactInfoMavenArtifactInfo.getExtension()public MavenArtifactInfo[] getDependencies()
getDependencies in interface MavenArtifactInfoMavenArtifactInfo.getDependencies()public ScopeType getScope()
getScope in interface MavenArtifactInfoCopyright © 2013 JBoss by Red Hat. All rights reserved.