public class LicenseHeaders extends Object
| Constructor and Description |
|---|
LicenseHeaders(String pLicenseName) |
| Modifier and Type | Method and Description |
|---|---|
String |
getLicense()
Get the license header for the LicenseHeader object.
|
String |
getLicenseName()
Get the license name for the LicenseHeader object.
|
void |
initializeRelations()
Initializes relations between supported licenses and license text
|
boolean |
isValidLicense(String licenseName)
Validate a given license name against the supported license
|
void |
setLicenseName(String pLicenseName)
Set the license header for the LicenseHeader object.
|
public LicenseHeaders(String pLicenseName)
pLicenseName - the license header you wish to create with this objectpublic void initializeRelations()
public void setLicenseName(String pLicenseName)
pLicenseName - the license name to set the header topublic String getLicense()
public String getLicenseName()
public boolean isValidLicense(String licenseName)
licenseName - name of the licenseCopyright © 2010-2019 The Apache Software Foundation. All Rights Reserved.