org.repoweb.pom
Interface ArtifactInfo

All Known Subinterfaces:
Artifact
All Known Implementing Classes:
AbstractArtifact, Dependency

public interface ArtifactInfo

Represent information of a maven's artifact.


Method Summary
 java.lang.String getArtifactId()
          Retrieve the Artifact Id.
 java.lang.String getFileName()
          Retrieve the file name of the artifact.
 java.lang.String getGroupId()
          Retrieve the Group Id.
 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.
 

Method Detail

getGroupId

public java.lang.String getGroupId()
Retrieve the Group Id.

Returns:
id (e.g. 'struts')

getArtifactId

public java.lang.String getArtifactId()
Retrieve the Artifact Id.

Returns:
id (e.g. 'junit')

getType

public java.lang.String getType()
Retrieve the artifact type. This is determined by the folder containing the artifact.

Returns:
the artifact type (e.g. 'jar' for 'jars' folder)

getVersion

public java.lang.String getVersion()
Retrieve the version of this artifact. Returns an empty string when no version has been given.

Returns:
version label (e.g. '3.8.1-SNAPSHOT').

getFileName

public java.lang.String getFileName()
Retrieve the file name of the artifact.

Returns:
file name (e.g. 'junit-3.8.1.jar')

isOverridden

public boolean isOverridden()
Indicates if the fileName is conform to the standard maven's naming schema.

[maven]/[groupId]/[type]s/[artifactId]-[version].[type]

Returns:
true if this artifact does not follow the default naming schema.


Copyright © 2003-2005 Repoweb. All Rights Reserved.