Apache Tuscany SCA Kernel Sub-Project

org.apache.tuscany.spi.services.artifact
Class Artifact

java.lang.Object
  extended by org.apache.tuscany.spi.services.artifact.Artifact

public class Artifact
extends Object

Description of some packaged artifact such as a JAR file or a Composite.

Version:
$Rev: 453835 $ $Date: 2006-10-06 19:03:38 -0700 (Fri, 06 Oct 2006) $

Constructor Summary
Artifact()
           
 
Method Summary
 void addDependency(Artifact artifact)
          Adds a transitive dependency to the artifact.
 String getClassifier()
          Returns a way of classifying an artifact.
 String getGroup()
          Returns the name of a logical grouping to which this artifact belongs.
 String getName()
          Returns the name of an artifact.
 String getType()
          Returns the type of artifact.
 URL getUrl()
          Returns a URL from which the artifact can be obtained.
 Set<URL> getUrls()
          Gets the URLs for all the transitive dependencies.
 String getVersion()
          Returns the version of an artifact.
 void setClassifier(String classifier)
          Sets a way of classifying an artifact
 void setGroup(String group)
          Sets the name of a logical grouping to which this artifact belongs.
 void setName(String name)
          Sets the name of an artifact.
 void setType(String type)
          Sets the type of artifact.
 void setUrl(URL url)
          Sets a URL from which the artifact can be obtained.
 void setVersion(String version)
          Sets the version of an artifact.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Artifact

public Artifact()
Method Detail

addDependency

public void addDependency(Artifact artifact)
Adds a transitive dependency to the artifact.

Parameters:
artifact - Dependency to be added.

getUrls

public Set<URL> getUrls()
Gets the URLs for all the transitive dependencies.

Returns:
Sets of URLs for all the transitive dependencies.

getGroup

public String getGroup()
Returns the name of a logical grouping to which this artifact belongs. For example, this might represent the original publisher of the artifact.

Returns:
the name of a logical grouping to which this artifact belongs

setGroup

public void setGroup(String group)
Sets the name of a logical grouping to which this artifact belongs.

Parameters:
group - the name of a logical grouping to which this artifact belongs

getName

public String getName()
Returns the name of an artifact.

Returns:
the name of an artifact

setName

public void setName(String name)
Sets the name of an artifact.

Parameters:
name - the name of an artifact

getVersion

public String getVersion()
Returns the version of an artifact.

Returns:
the version of an artifact

setVersion

public void setVersion(String version)
Sets the version of an artifact.

Parameters:
version - the version of an artifact

getClassifier

public String getClassifier()
Returns a way of classifying an artifact. This can be used to distinguish variants of an artifact that provide the same function but which may have platform specific requirements. For example, it may contain the name of a hardware platform for artifacts that contain native code.

Returns:
a way of classifying an artifact

setClassifier

public void setClassifier(String classifier)
Sets a way of classifying an artifact

Parameters:
classifier - a way of classifying an artifact

getType

public String getType()
Returns the type of artifact.

Returns:
the type of artifact

setType

public void setType(String type)
Sets the type of artifact.

Parameters:
type - the type of artifact

getUrl

public URL getUrl()
Returns a URL from which the artifact can be obtained.

Returns:
a URL from which the artifact can be obtained

setUrl

public void setUrl(URL url)
Sets a URL from which the artifact can be obtained.

Parameters:
url - a URL from which the artifact can be obtained

toString

public String toString()
Overrides:
toString in class Object

Apache Tuscany SCA Kernel Sub-Project

-