|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.repoweb.model.common.AbstractArtifact
Abstract class to ease implementation of the Artifact interface.
| Nested Class Summary | |
class |
AbstractArtifact.BadArtifactFileException
Signal a bad artifact file name. |
| Constructor Summary | |
protected |
AbstractArtifact(java.io.File file)
|
| Method Summary | |
java.lang.String |
getArtifactId()
Retrieve the Artifact Id. |
protected java.io.File |
getFile()
|
java.lang.String |
getFileName()
Retrieve the file name of the artifact. |
java.lang.String |
getGroupId()
Retrieve the Group Id. |
java.lang.String |
getId()
Return an id for an artifact. |
java.lang.String |
getType()
Retrieve the artifact type. |
java.lang.String |
getVersion()
Retrieve the version of this artifact. |
boolean |
isOverridden()
Indicates if the fileName is conform to the standard maven's naming schema. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.repoweb.model.Artifact |
getInputStream, getLength, getPom |
| Constructor Detail |
protected AbstractArtifact(java.io.File file)
throws AbstractArtifact.BadArtifactFileException
| Method Detail |
public java.lang.String getGroupId()
ArtifactInfo
getGroupId in interface ArtifactInfopublic java.lang.String getArtifactId()
ArtifactInfo
getArtifactId in interface ArtifactInfopublic java.lang.String getId()
Artifact
getId in interface Artifactpublic java.lang.String getType()
ArtifactInfo
getType in interface ArtifactInfopublic java.lang.String getVersion()
ArtifactInfo
getVersion in interface ArtifactInfopublic boolean isOverridden()
ArtifactInfo[maven]/[groupId]/[type]s/[artifactId]-[version].[type]
isOverridden in interface ArtifactInfopublic java.lang.String getFileName()
ArtifactInfo
getFileName in interface ArtifactInfoprotected java.io.File getFile()
public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||