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 int
compareTo(DependencyInfo that)
String
getArtifactId()
String
getGroupArtifactKey()
String
getGroupId()
String
getScope()
String
getType()
String
getVersion()
int
hashCode()
void
setScope(String scope)
Assigns the scope of this DependencyInfo.void
setType(String type)
Assigns the type of this DependencyInfo.String
toString()
-
-
-
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:
compareTo
in interfaceComparable<DependencyInfo>
-
-