org.codehaus.plexus.component.repository

Class ComponentDependency

public class ComponentDependency extends Object

This represents a project which this component depends upon to function properly, for example, a required jar file. See Apache Maven for an example of a dependency in action.

Version: $Id: ComponentDependency.java 6965 2007-10-21 05:32:27Z jvanzyl $

Author: Jason van Zyl Trygve Laugstøl

Field Summary
StringartifactId
static StringDEAULT_DEPENDENCY_TYPE
StringgroupId
Stringtype
Stringversion
Method Summary
StringgetArtifactId()
Gets a key for an artifact, which is an alias for a specific project timeline in a group.
StringgetGroupId()
Gets a key for a group, which represents a set of artifacts timelines.
StringgetType()
Gets the type of dependency, for example a "jar".
StringgetVersion()
Returns a specific point in a project's timeline. i.e. version 1, or 2.1.4
voidsetArtifactId(String artifactId)
Sets the dependency's artifact ID.
voidsetGroupId(String groupId)
Sets the dependency's group ID.
voidsetType(String type)
Sets the dependency project's type.
voidsetVersion(String version)
Sets the point in a project's development timeline
StringtoString()

Field Detail

artifactId

private String artifactId

DEAULT_DEPENDENCY_TYPE

private static final String DEAULT_DEPENDENCY_TYPE

groupId

private String groupId

type

private String type

version

private String version

Method Detail

getArtifactId

public String getArtifactId()
Gets a key for an artifact, which is an alias for a specific project timeline in a group.

Returns: a key for an artifact

getGroupId

public String getGroupId()
Gets a key for a group, which represents a set of artifacts timelines.

Returns: a key for a group

getType

public String getType()
Gets the type of dependency, for example a "jar".

Returns: the type of dependency

getVersion

public String getVersion()
Returns a specific point in a project's timeline. i.e. version 1, or 2.1.4

Returns: a specific point in a project's timeline

setArtifactId

public void setArtifactId(String artifactId)
Sets the dependency's artifact ID.

Parameters: artifactId the artifact ID

setGroupId

public void setGroupId(String groupId)
Sets the dependency's group ID.

Parameters: groupId the group ID

setType

public void setType(String type)
Sets the dependency project's type.

Parameters: type the dependency's type

setVersion

public void setVersion(String version)
Sets the point in a project's development timeline

Parameters: version the project's version

toString

public String toString()