Class ProjectLicenseInfo
java.lang.Object
org.codehaus.mojo.license.download.ProjectLicenseInfo
Contains the license information for a single project/dependency
- Since:
- 1.0
- Author:
- pgier
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.ProjectLicenseInfo(String groupId, String artifactId, String version, boolean hasMatchLicenses) ProjectLicenseInfo(String groupId, String artifactId, String version, ExtendedInfo extendedInfo) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDownloaderMessage(String message) voidaddLicense(ProjectLicense license) voidaddMatchLicense(ProjectLicense license) booleandeepEquals(ProjectLicenseInfo other) booleangetId()The unique ID for the projectinthashCode()booleanbooleanvoidsetApproved(boolean approved) voidsetArtifactId(String artifactId) voidsetGroupId(String groupId) voidsetHasMatchLicenses(boolean hasMatchLicenses) voidsetLicenses(List<ProjectLicense> licenses) voidsetMatchLicenses(List<ProjectLicense> matchLicenses) voidsetVersion(String version) toString()
-
Constructor Details
-
ProjectLicenseInfo
public ProjectLicenseInfo()Default constructor. -
ProjectLicenseInfo
public ProjectLicenseInfo(String groupId, String artifactId, String version, ExtendedInfo extendedInfo) -
ProjectLicenseInfo
-
-
Method Details
-
getGroupId
-
setGroupId
-
getArtifactId
-
setArtifactId
-
getVersion
-
setVersion
-
getLicenses
-
setLicenses
-
addLicense
-
getMatchLicenses
-
setMatchLicenses
-
addMatchLicense
-
hasMatchLicenses
public boolean hasMatchLicenses() -
setHasMatchLicenses
public void setHasMatchLicenses(boolean hasMatchLicenses) -
getId
The unique ID for the project- Returns:
- String containing "groupId:artifactId"
-
getDownloaderMessages
-
addDownloaderMessage
-
toString
-
toGavString
-
equals
-
deepEquals
-
hashCode
public int hashCode() -
cloneLicenses
- Returns:
- a deep clone of
licenses
-
setApproved
public void setApproved(boolean approved) -
isApproved
public boolean isApproved() -
getExtendedInfo
-