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
  • Field Details

  • Constructor Details

    • DependencyInfo

      public DependencyInfo(String groupId, String artifactId, String version)
  • Method Details

    • 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.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • compareTo

      public int compareTo(DependencyInfo that)
      Specified by:
      compareTo in interface Comparable<DependencyInfo>