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 TypeMethodDescriptionvoid
addDownloaderMessage
(String message) void
addLicense
(ProjectLicense license) void
addMatchLicense
(ProjectLicense license) boolean
deepEquals
(ProjectLicenseInfo other) boolean
getId()
The unique ID for the projectint
hashCode()
boolean
boolean
void
setApproved
(boolean approved) void
setArtifactId
(String artifactId) void
setGroupId
(String groupId) void
setHasMatchLicenses
(boolean hasMatchLicenses) void
setLicenses
(List<ProjectLicense> licenses) void
setMatchLicenses
(List<ProjectLicense> matchLicenses) void
setVersion
(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
-