public class ProjectLicense extends Object implements Cloneable
ProjectLicenseInfo.| Constructor and Description |
|---|
ProjectLicense()
The default constructor.
|
ProjectLicense(org.apache.maven.model.License license)
Equivalent to
new ProjectLicense( license.getName(), license.getUrl(), license.getDistribution(),
license.getComments(), null ) |
ProjectLicense(String name,
String url,
String distribution,
String comments,
String file)
The full constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ProjectLicense |
clone() |
boolean |
equals(Object obj) |
String |
getComments()
Get addendum information pertaining to this license.
|
String |
getDistribution()
Get the primary method by which this project may be
distributed.
|
String |
getFile()
Returns the name of the license file (without path) downloaded from
url. |
String |
getName()
Get the full legal name of the license.
|
String |
getUrl()
Get the official url for the license text.
|
int |
hashCode() |
void |
setComments(String comments)
Set addendum information pertaining to this license.
|
void |
setDistribution(String distribution)
Set the primary method by which this project may be
distributed.
|
void |
setFile(String file)
Set the name of the license file (without path) downloaded from
url. |
void |
setName(String name)
Set the full legal name of the license.
|
void |
setUrl(String url)
Set the official url for the license text.
|
public ProjectLicense()
public ProjectLicense(org.apache.maven.model.License license)
new ProjectLicense( license.getName(), license.getUrl(), license.getDistribution(),
license.getComments(), null )license - the license to get name, URL, ditribution and comments frompublic ProjectLicense(String name, String url, String distribution, String comments, String file)
name - a human readable license nameurl - a URL from where the license text can be downloadeddistribution - see getDistribution()comments - additional information related to this licensefile - file name without pathpublic String getComments()
public String getDistribution()
public String getName()
public String getUrl()
public String getFile()
url.nullpublic void setComments(String comments)
comments - public void setDistribution(String distribution)
distribution - public void setName(String name)
name - public void setUrl(String url)
url - public void setFile(String file)
url.file - the path to setpublic ProjectLicense clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionCopyright © 2010–2019 MojoHaus. All rights reserved.