org.repoweb.model
Interface Artifact

All Superinterfaces:
ArtifactInfo
All Known Implementing Classes:
AbstractArtifact

public interface Artifact
extends ArtifactInfo

Represent a maven's artifact. A maven artifact file can be jar, xml, etc..


Method Summary
 java.lang.String getId()
          Return an id for an artifact.
 java.io.InputStream getInputStream()
          Returns an input stream on this artifact.
 long getLength()
          Retrieve the artifact length.
 Artifact getPom()
          Retrieve the Project Object Model for this artifact.
 
Methods inherited from interface org.repoweb.pom.ArtifactInfo
getArtifactId, getFileName, getGroupId, getType, getVersion, isOverridden
 

Method Detail

getId

public java.lang.String getId()
Return an id for an artifact.

Returns:
A unique (version independent) of an artifact (e.g. 'struts:struts-legacy').

getPom

public Artifact getPom()
Retrieve the Project Object Model for this artifact.

Returns:
POM artifact (e.g. 'junit-3.8.1.pom')

getLength

public long getLength()
Retrieve the artifact length.

Returns:
length in byte.

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Returns an input stream on this artifact.

Returns:
an input stream.
Throws:
java.io.IOException - read error.


Copyright © 2003-2005 Repoweb. All Rights Reserved.