Package org.codehaus.mojo.license.api
Class DefaultThirdPartyDetails
java.lang.Object
org.codehaus.mojo.license.api.DefaultThirdPartyDetails
- All Implemented Interfaces:
ThirdPartyDetails
Default implementation of
ThirdPartyDetails.- Since:
- 1.1
- Author:
- tchemit dev@tchemit.fr
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanString[]String[]getScope()String[]getType()inthashCode()booleanbooleanbooleanvoidsetPomLicenses(String[] pomLicenses) Sets the pom licenses.voidsetThirdPartyLicenses(String[] thirdPartyLicenses) Sets the third-party licenses.
-
Constructor Details
-
DefaultThirdPartyDetails
public DefaultThirdPartyDetails(org.apache.maven.project.MavenProject project)
-
-
Method Details
-
getGroupId
- Specified by:
getGroupIdin interfaceThirdPartyDetails- Returns:
- the groupId of the dependency
-
getArtifactId
- Specified by:
getArtifactIdin interfaceThirdPartyDetails- Returns:
- the artifactId of the dependency
-
getVersion
- Specified by:
getVersionin interfaceThirdPartyDetails- Returns:
- the version of the dependency
-
getType
- Specified by:
getTypein interfaceThirdPartyDetails- Returns:
- the type of the dependency
-
getClassifier
- Specified by:
getClassifierin interfaceThirdPartyDetails- Returns:
- the classifier of the dependency
-
getScope
- Specified by:
getScopein interfaceThirdPartyDetails- Returns:
- the scope of the dependency
-
hasPomLicenses
public boolean hasPomLicenses()- Specified by:
hasPomLicensesin interfaceThirdPartyDetails- Returns:
trueif the project contains a license in his pom.
-
getLicenses
- Specified by:
getLicensesin interfaceThirdPartyDetails- Returns:
- the licenses defined of the dependency
-
hasLicenses
public boolean hasLicenses()- Specified by:
hasLicensesin interfaceThirdPartyDetails- Returns:
trueif the project contains at least one license (from pom or third-party missing file).
-
getPomLicenses
- Specified by:
getPomLicensesin interfaceThirdPartyDetails- Returns:
- the licenses defined in the pom of the project.
-
setPomLicenses
Sets the pom licenses.- Specified by:
setPomLicensesin interfaceThirdPartyDetails- Parameters:
pomLicenses- licenses loaded from the pom file
-
getThirdPartyLicenses
- Specified by:
getThirdPartyLicensesin interfaceThirdPartyDetails- Returns:
- the licenses defined in the third-party file.
-
hasThirdPartyLicenses
public boolean hasThirdPartyLicenses()- Specified by:
hasThirdPartyLicensesin interfaceThirdPartyDetails- Returns:
trueif the project has his licenses defined in the third-party file.
-
setThirdPartyLicenses
Sets the third-party licenses.- Specified by:
setThirdPartyLicensesin interfaceThirdPartyDetails- Parameters:
thirdPartyLicenses- licenses loaded from the third-party file
-
equals
-
hashCode
public int hashCode()
-