Class ProjectLicenseInfo


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

      • ProjectLicenseInfo

        public ProjectLicenseInfo()
        Default constructor.
      • ProjectLicenseInfo

        public ProjectLicenseInfo​(String groupId,
                                  String artifactId,
                                  String version)
    • Method Detail

      • getLicenseResolutionResult

        public String getLicenseResolutionResult()
      • setLicenseResolutionResult

        public void setLicenseResolutionResult​(String licenseResolutionResult)
      • 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<org.apache.maven.model.License> getLicenses()
      • setLicenses

        public void setLicenses​(List<org.apache.maven.model.License> licenses)
      • addLicense

        public void addLicense​(org.apache.maven.model.License license)
      • getId

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

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

        public int hashCode()
        Overrides:
        hashCode in class Object