Package org.codehaus.mojo.license.model
Class License
java.lang.Object
org.codehaus.mojo.license.model.License
The model of a license.
- Since:
- 1.0
- Author:
- tchemit dev@tchemit.fr
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected URL
base url of license (directory where to find license files).protected String
the description of the license.protected URL
url of the license header's content.static final String
static final String
protected URL
url of the license's content.protected String
the name of the licenses (ex lgpl-3.0).static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetHeaderContent
(String encoding) getLicenseContent
(String encoding) getName()
boolean
boolean
void
setBaseURL
(URL baseURL) void
setDescription
(String description) void
setHeaderURL
(URL headerURL) void
setLicenseURL
(URL licenseURL) void
toString()
-
Field Details
-
LICENSE_HEADER_FILE
- See Also:
-
LICENSE_CONTENT_FILE
- See Also:
-
TEMPLATE_SUFFIX
- See Also:
-
baseURL
base url of license (directory where to find license files). -
name
the name of the licenses (ex lgpl-3.0). -
description
the description of the license. -
licenseURL
url of the license's content. -
headerURL
url of the license header's content.
-
-
Constructor Details
-
License
public License()
-
-
Method Details
-
getName
-
getLicenseURL
-
getHeaderURL
-
getDescription
-
getBaseURL
-
isHeaderContentTemplateAware
public boolean isHeaderContentTemplateAware() -
isLicenseContentTemplateAware
public boolean isLicenseContentTemplateAware() -
getLicenseContent
- Throws:
IOException
-
getHeaderContent
- Throws:
IOException
-
setName
-
setDescription
-
setBaseURL
-
setLicenseURL
-
setHeaderURL
-
toString
-