public class MavenArtifactInfoImpl extends Object implements MavenArtifactInfo
MavenArtifactInfo.| Modifier and Type | Field and Description |
|---|---|
protected MavenArtifactInfo[] |
dependencies |
protected String |
extension |
protected MavenCoordinate |
mavenCoordinate |
protected boolean |
optional |
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,
boolean optional) |
protected |
MavenArtifactInfoImpl(MavenCoordinate mavenCoordinate,
String resolvedVersion,
boolean snapshotVersion,
String extension,
ScopeType scopeType,
MavenArtifactInfo[] dependencies,
boolean optional) |
| 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
MavenArtifactInfo.getResolvedVersion()), which must resolve to a versioned snapshot version
number. |
ScopeType |
getScope()
Returns the scope information of this artifact
|
boolean |
isOptional()
Returns true if artifact is optional.
|
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 boolean optional
protected final MavenArtifactInfo[] dependencies
protected MavenArtifactInfoImpl(MavenCoordinate mavenCoordinate, String resolvedVersion, boolean snapshotVersion, String extension, ScopeType scopeType, MavenArtifactInfo[] dependencies, boolean optional)
protected MavenArtifactInfo[] parseDependencies(List<org.eclipse.aether.graph.DependencyNode> children)
children - A list of DependencyNode'sMavenArtifactInfo array from List of DependencyNode's.public MavenCoordinate getCoordinate()
getCoordinate in interface MavenArtifactInfoMavenArtifactInfo.getCoordinate()public String getResolvedVersion()
MavenArtifactInfo.getResolvedVersion()), 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 MavenCoordinate.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()
MavenArtifactInfogetScope in interface MavenArtifactInfopublic boolean isOptional()
MavenArtifactInfoisOptional in interface MavenArtifactInfoCopyright © 2025 JBoss by Red Hat. All rights reserved.