|
ShrinkWrap Resolver Maven API 2.0.0-alpha-3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ResolvedArtifactInfo
Encapsulation of a resolved Maven-based artifact's metadata
| Method Summary | ||
|---|---|---|
File |
getArtifact(Class<File> clazz)
Returns the resolved artifact as a File; alias for
getArtifact(FormatProcessor) passing in argument of FileFormatProcessor |
|
InputStream |
getArtifact(Class<InputStream> clazz)
Returns the resolved artifact as an InputStream; alias for
getArtifact(FormatProcessor) passing in argument of
InputStreamFormatProcessor |
|
|
getArtifact(FORMATTERTYPE formatter)
Returns the resolved artifact using the specified FORMATTERTYPE instance |
|
MavenCoordinate |
getCoordinate()
Returns the defined coordinate (ie. |
|
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. |
|
boolean |
isSnapshotVersion()
Returns whether or not this artifact is using a SNAPSHOT version. |
|
| Method Detail |
|---|
MavenCoordinate getCoordinate()
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().
boolean isSnapshotVersion()
String getExtension()
<FORMATTERTYPE extends FormatProcessor<RETURNTYPE>,RETURNTYPE> RETURNTYPE getArtifact(FORMATTERTYPE formatter)
FORMATTERTYPE instance
FORMATTERTYPE - The type of formatter usedRETURNTYPE - The type returned by the formatterformatter - The formatter to use
File getArtifact(Class<File> clazz)
File; alias for
getArtifact(FormatProcessor) passing in argument of FileFormatProcessor
InputStream getArtifact(Class<InputStream> clazz)
InputStream; alias for
getArtifact(FormatProcessor) passing in argument of
InputStreamFormatProcessor
|
ShrinkWrap Resolver Maven API 2.0.0-alpha-3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||