Package org.codehaus.mojo.license.api
Interface ThirdPartyDetails
- All Known Implementing Classes:
DefaultThirdPartyDetails
public interface ThirdPartyDetails
Details of a artifact about his third-parties stuff.
- Since:
- 1.1
- Author:
- tchemit dev@tchemit.fr
-
Method Summary
Modifier and TypeMethodDescriptionString[]
String[]
getScope()
String[]
getType()
boolean
boolean
boolean
void
setPomLicenses
(String[] pomLicenses) Sets the pom licenses.void
setThirdPartyLicenses
(String[] thirdPartyLicenses) Sets the third-party licenses.
-
Method Details
-
getGroupId
String getGroupId()- Returns:
- the groupId of the dependency
-
getArtifactId
String getArtifactId()- Returns:
- the artifactId of the dependency
-
getVersion
String getVersion()- Returns:
- the version of the dependency
-
getType
String getType()- Returns:
- the type of the dependency
-
getClassifier
String getClassifier()- Returns:
- the classifier of the dependency
-
getScope
String getScope()- Returns:
- the scope of the dependency
-
hasLicenses
boolean hasLicenses()- Returns:
true
if the project contains at least one license (from pom or third-party missing file).
-
getLicenses
String[] getLicenses()- Returns:
- the licenses defined of the dependency
-
hasPomLicenses
boolean hasPomLicenses()- Returns:
true
if the project contains a license in his pom.
-
getPomLicenses
String[] getPomLicenses()- Returns:
- the licenses defined in the pom of the project.
-
setPomLicenses
Sets the pom licenses.- Parameters:
pomLicenses
- licenses loaded from the pom file
-
getThirdPartyLicenses
String[] getThirdPartyLicenses()- Returns:
- the licenses defined in the third-party file.
-
setThirdPartyLicenses
Sets the third-party licenses.- Parameters:
thirdPartyLicenses
- licenses loaded from the third-party file
-
hasThirdPartyLicenses
boolean hasThirdPartyLicenses()- Returns:
true
if the project has his licenses defined in the third-party file.
-