public class License extends Object
| Modifier and Type | Field and Description |
|---|---|
protected URL |
baseURL
base url of license (directory where to find license files).
|
protected String |
description
the description of the license.
|
protected URL |
headerURL
url of the license header's content.
|
static String |
LICENSE_CONTENT_FILE |
static String |
LICENSE_HEADER_FILE |
protected URL |
licenseURL
url of the license's content.
|
protected String |
name
the name of the licenses (ex lgpl-3.0).
|
static String |
TEMPLATE_SUFFIX |
| Constructor and Description |
|---|
License() |
| Modifier and Type | Method and Description |
|---|---|
URL |
getBaseURL() |
String |
getDescription() |
String |
getHeaderContent(String encoding) |
URL |
getHeaderURL() |
String |
getLicenseContent(String encoding) |
URL |
getLicenseURL() |
String |
getName() |
boolean |
isHeaderContentTemplateAware() |
boolean |
isLicenseContentTemplateAware() |
void |
setBaseURL(URL baseURL) |
void |
setDescription(String description) |
void |
setHeaderURL(URL headerURL) |
void |
setLicenseURL(URL licenseURL) |
void |
setName(String name) |
String |
toString() |
public static final String LICENSE_HEADER_FILE
public static final String LICENSE_CONTENT_FILE
public static final String TEMPLATE_SUFFIX
protected URL baseURL
protected String name
protected String description
protected URL licenseURL
protected URL headerURL
public String getName()
public URL getLicenseURL()
public URL getHeaderURL()
public String getDescription()
public URL getBaseURL()
public boolean isHeaderContentTemplateAware()
public boolean isLicenseContentTemplateAware()
public String getLicenseContent(String encoding) throws IOException
IOExceptionpublic String getHeaderContent(String encoding) throws IOException
IOExceptionpublic void setName(String name)
public void setDescription(String description)
public void setBaseURL(URL baseURL)
public void setLicenseURL(URL licenseURL)
public void setHeaderURL(URL headerURL)
Copyright © 2010–2023. All rights reserved.