Class DependencyInfo
- java.lang.Object
-
- org.codehaus.mojo.jaxb2.shared.version.DependencyInfo
-
- All Implemented Interfaces:
Comparable<DependencyInfo>
public class DependencyInfo extends Object implements Comparable<DependencyInfo>
Trivial holder class for dependency information, as found within a dependencies.properties file.- Since:
- 2.0
- Author:
- Lennart Jörelid, jGuru Europe AB
-
-
Constructor Summary
Constructors Constructor Description DependencyInfo(String groupId, String artifactId, String version)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(DependencyInfo that)StringgetArtifactId()StringgetGroupArtifactKey()StringgetGroupId()StringgetScope()StringgetType()StringgetVersion()inthashCode()voidsetScope(String scope)Assigns the scope of this DependencyInfo.voidsetType(String type)Assigns the type of this DependencyInfo.StringtoString()
-
-
-
Method Detail
-
getGroupId
public String getGroupId()
- Returns:
- The GroupId of this DependencyInfo.
-
getArtifactId
public String getArtifactId()
- Returns:
- The ArtifactId of this DependencyInfo.
-
getVersion
public String getVersion()
- Returns:
- The Maven version of this DependencyInfo.
-
getType
public String getType()
- Returns:
- The type of this DependencyInfo.
-
getScope
public String getScope()
- Returns:
- The scope of this DependencyInfo.
-
setType
public void setType(String type)
Assigns the type of this DependencyInfo.- Parameters:
type- The non-empty type of this DependencyInfo.
-
setScope
public void setScope(String scope)
Assigns the scope of this DependencyInfo.- Parameters:
scope- The non-empty scope of this DependencyInfo.
-
getGroupArtifactKey
public String getGroupArtifactKey()
- Returns:
- A key for use within a SortedSet where this DependencyInfo should be sorted.
-
compareTo
public int compareTo(DependencyInfo that)
- Specified by:
compareToin interfaceComparable<DependencyInfo>
-
-