public class DefaultThirdPartyDetails extends Object implements ThirdPartyDetails
ThirdPartyDetails.| Constructor and Description |
|---|
DefaultThirdPartyDetails(org.apache.maven.project.MavenProject project) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getArtifactId() |
String |
getClassifier() |
String |
getGroupId() |
String[] |
getLicenses() |
String[] |
getPomLicenses() |
String |
getScope() |
String[] |
getThirdPartyLicenses() |
String |
getType() |
String |
getVersion() |
int |
hashCode() |
boolean |
hasLicenses() |
boolean |
hasPomLicenses() |
boolean |
hasThirdPartyLicenses() |
void |
setPomLicenses(String[] pomLicenses)
Sets the pom licenses.
|
void |
setThirdPartyLicenses(String[] thirdPartyLicenses)
Sets the third-party licenses.
|
public DefaultThirdPartyDetails(org.apache.maven.project.MavenProject project)
public String getGroupId()
getGroupId in interface ThirdPartyDetailspublic String getArtifactId()
getArtifactId in interface ThirdPartyDetailspublic String getVersion()
getVersion in interface ThirdPartyDetailspublic String getType()
getType in interface ThirdPartyDetailspublic String getClassifier()
getClassifier in interface ThirdPartyDetailspublic String getScope()
getScope in interface ThirdPartyDetailspublic boolean hasPomLicenses()
hasPomLicenses in interface ThirdPartyDetailstrue if the project contains a license in his pom.public String[] getLicenses()
getLicenses in interface ThirdPartyDetailspublic boolean hasLicenses()
hasLicenses in interface ThirdPartyDetailstrue if the project contains at least one license (from pom or third-party missing file).public String[] getPomLicenses()
getPomLicenses in interface ThirdPartyDetailspublic void setPomLicenses(String[] pomLicenses)
setPomLicenses in interface ThirdPartyDetailspomLicenses - licenses loaded from the pom filepublic String[] getThirdPartyLicenses()
getThirdPartyLicenses in interface ThirdPartyDetailspublic boolean hasThirdPartyLicenses()
hasThirdPartyLicenses in interface ThirdPartyDetailstrue if the project has his licenses defined in the third-party file.public void setThirdPartyLicenses(String[] thirdPartyLicenses)
setThirdPartyLicenses in interface ThirdPartyDetailsthirdPartyLicenses - licenses loaded from the third-party fileCopyright © 2010–2019 MojoHaus. All rights reserved.