net.sf.taverna.raven.repository.impl
Class ArtifactImpl

java.lang.Object
  extended by net.sf.taverna.raven.repository.BasicArtifact
      extended by net.sf.taverna.raven.repository.impl.ArtifactImpl
All Implemented Interfaces:
java.lang.Comparable, Artifact

public class ArtifactImpl
extends BasicArtifact

A single Maven2 artifact with group, artifact and version

Author:
Tom Oinn, Danielle Turi, Stian Soiland-Reyes

Method Summary
 java.util.List<ArtifactImpl> getDependencies()
          Analyse the corresponding .pom and return a list of all immediate dependencies from this artifact.
 java.lang.String getPackageType()
           
 
Methods inherited from class net.sf.taverna.raven.repository.BasicArtifact
compareTo, equals, getArtifactId, getGroupId, getVersion, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getDependencies

public java.util.List<ArtifactImpl> getDependencies()
                                             throws ArtifactStateException
Analyse the corresponding .pom and return a list of all immediate dependencies from this artifact. If no repository is defined then return an empty list.

Returns:
List of Artifacts upon which this depends
Throws:
ArtifactStateException

getPackageType

public java.lang.String getPackageType()