Class ProjectLicenseInfo

java.lang.Object
org.codehaus.mojo.license.download.ProjectLicenseInfo

public class ProjectLicenseInfo extends Object
Contains the license information for a single project/dependency
Since:
1.0
Author:
pgier
  • Constructor Details

    • ProjectLicenseInfo

      public ProjectLicenseInfo()
      Default constructor.
    • ProjectLicenseInfo

      public ProjectLicenseInfo(String groupId, String artifactId, String version, ExtendedInfo extendedInfo)
    • ProjectLicenseInfo

      public ProjectLicenseInfo(String groupId, String artifactId, String version, boolean hasMatchLicenses)
  • Method Details

    • getGroupId

      public String getGroupId()
    • setGroupId

      public void setGroupId(String groupId)
    • getArtifactId

      public String getArtifactId()
    • setArtifactId

      public void setArtifactId(String artifactId)
    • getVersion

      public String getVersion()
    • setVersion

      public void setVersion(String version)
    • getLicenses

      public List<ProjectLicense> getLicenses()
    • setLicenses

      public void setLicenses(List<ProjectLicense> licenses)
    • addLicense

      public void addLicense(ProjectLicense license)
    • getMatchLicenses

      public List<ProjectLicense> getMatchLicenses()
    • setMatchLicenses

      public void setMatchLicenses(List<ProjectLicense> matchLicenses)
    • addMatchLicense

      public void addMatchLicense(ProjectLicense license)
    • hasMatchLicenses

      public boolean hasMatchLicenses()
    • setHasMatchLicenses

      public void setHasMatchLicenses(boolean hasMatchLicenses)
    • getId

      public String getId()
      The unique ID for the project
      Returns:
      String containing "groupId:artifactId"
    • getDownloaderMessages

      public List<String> getDownloaderMessages()
    • addDownloaderMessage

      public void addDownloaderMessage(String message)
    • toString

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

      public String toGavString()
    • equals

      public boolean equals(Object compareTo)
      Overrides:
      equals in class Object
    • deepEquals

      public boolean deepEquals(ProjectLicenseInfo other)
    • hashCode

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

      public List<ProjectLicense> cloneLicenses()
      Returns:
      a deep clone of licenses
    • setApproved

      public void setApproved(boolean approved)
    • isApproved

      public boolean isApproved()
    • getExtendedInfo

      public ExtendedInfo getExtendedInfo()