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 TypeMethodDescriptionboolean
String[]
String[]
getScope()
String[]
getType()
int
hashCode()
boolean
boolean
boolean
void
setPomLicenses
(String[] pomLicenses) Sets the pom licenses.void
setThirdPartyLicenses
(String[] thirdPartyLicenses) Sets the third-party licenses.
-
Constructor Details
-
DefaultThirdPartyDetails
public DefaultThirdPartyDetails(org.apache.maven.project.MavenProject project)
-
-
Method Details
-
getGroupId
- Specified by:
getGroupId
in interfaceThirdPartyDetails
- Returns:
- the groupId of the dependency
-
getArtifactId
- Specified by:
getArtifactId
in interfaceThirdPartyDetails
- Returns:
- the artifactId of the dependency
-
getVersion
- Specified by:
getVersion
in interfaceThirdPartyDetails
- Returns:
- the version of the dependency
-
getType
- Specified by:
getType
in interfaceThirdPartyDetails
- Returns:
- the type of the dependency
-
getClassifier
- Specified by:
getClassifier
in interfaceThirdPartyDetails
- Returns:
- the classifier of the dependency
-
getScope
- Specified by:
getScope
in interfaceThirdPartyDetails
- Returns:
- the scope of the dependency
-
hasPomLicenses
public boolean hasPomLicenses()- Specified by:
hasPomLicenses
in interfaceThirdPartyDetails
- Returns:
true
if the project contains a license in his pom.
-
getLicenses
- Specified by:
getLicenses
in interfaceThirdPartyDetails
- Returns:
- the licenses defined of the dependency
-
hasLicenses
public boolean hasLicenses()- Specified by:
hasLicenses
in interfaceThirdPartyDetails
- Returns:
true
if the project contains at least one license (from pom or third-party missing file).
-
getPomLicenses
- Specified by:
getPomLicenses
in interfaceThirdPartyDetails
- Returns:
- the licenses defined in the pom of the project.
-
setPomLicenses
Sets the pom licenses.- Specified by:
setPomLicenses
in interfaceThirdPartyDetails
- Parameters:
pomLicenses
- licenses loaded from the pom file
-
getThirdPartyLicenses
- Specified by:
getThirdPartyLicenses
in interfaceThirdPartyDetails
- Returns:
- the licenses defined in the third-party file.
-
hasThirdPartyLicenses
public boolean hasThirdPartyLicenses()- Specified by:
hasThirdPartyLicenses
in interfaceThirdPartyDetails
- Returns:
true
if the project has his licenses defined in the third-party file.
-
setThirdPartyLicenses
Sets the third-party licenses.- Specified by:
setThirdPartyLicenses
in interfaceThirdPartyDetails
- Parameters:
thirdPartyLicenses
- licenses loaded from the third-party file
-
equals
-
hashCode
public int hashCode()
-