Class ComponentDependency
java.lang.Object
org.codehaus.plexus.component.repository.ComponentDependency
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.
- Author:
- Jason van Zyl, Trygve Laugstøl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets a key for an artifact, which is an alias for a specific project timeline in a group.Gets a key for a group, which represents a set of artifacts timelines.getType()
Gets the type of dependency, for example a "jar".Returns a specific point in a project's timeline.void
setArtifactId
(String artifactId) Sets the dependency's artifact ID.void
setGroupId
(String groupId) Sets the dependency's group ID.void
Sets the dependency project's type.void
setVersion
(String version) Sets the point in a project's development timelinetoString()
-
Constructor Details
-
ComponentDependency
public ComponentDependency()
-
-
Method Details
-
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
-
setArtifactId
Sets the dependency's artifact ID.- Parameters:
artifactId
- the artifact ID
-
getGroupId
Gets a key for a group, which represents a set of artifacts timelines.- Returns:
- a key for a group
-
setGroupId
Sets the dependency's group ID.- Parameters:
groupId
- the group ID
-
getType
Gets the type of dependency, for example a "jar".- Returns:
- the type of dependency
-
setType
Sets the dependency project's type.- Parameters:
type
- the dependency's type
-
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
-
setVersion
Sets the point in a project's development timeline- Parameters:
version
- the project's version
-
toString
-