ShrinkWrap Resolver Maven API 2.0.0-cr-1

org.jboss.shrinkwrap.resolver.api.maven
Interface MavenArtifactInfo

All Known Subinterfaces:
MavenResolvedArtifact

public interface MavenArtifactInfo

Resolved Maven-based artifact's metadata

Author:
Andrew Lee Rubinger, Karel Piwko, Michal Matloka

Method Summary
 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.
 

Method Detail

getCoordinate

MavenCoordinate getCoordinate()
Returns the defined coordinate (i.e. address) of this resolved artifact.

Returns:

getResolvedVersion

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. 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().

Returns:

isSnapshotVersion

boolean isSnapshotVersion()
Returns whether or not this artifact is using a SNAPSHOT version.

Returns:

getExtension

String getExtension()
Returns the file extension of this artifact, ie. ("jar")

Returns:
The file extension, which is never null

getDependencies

MavenArtifactInfo[] getDependencies()
Returns artifacts dependencies.

Returns:

getScope

ScopeType getScope()
Returns:
the scope information of this artifact

ShrinkWrap Resolver Maven API 2.0.0-cr-1

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.