| Modifier and Type | Field and Description |
|---|---|
protected URL |
baseURL
the base url of the licenses repository.
|
protected boolean |
init
flag to known if repository was init (pass to
true when invoking
the method load()). |
static Pattern |
LICENSE_DESCRIPTION_PATTERN |
protected List<License> |
licenses
licenses of this repository.
|
static String |
REPOSITORY_DEFINITION_FILE |
| Constructor and Description |
|---|
LicenseRepository() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkExists(URL url) |
protected void |
checkInit(String operation) |
protected void |
checkNotInit(String operation) |
URL |
getBaseURL() |
protected URL |
getDefinitionURL() |
protected URL |
getFileURL(License license,
String filename) |
License |
getLicense(String licenseName) |
protected URL |
getLicenseBaseURL(String licenseName) |
String[] |
getLicenseNames() |
License[] |
getLicenses() |
Iterator<License> |
iterator() |
void |
load() |
void |
setBaseURL(URL baseURL) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic static final String REPOSITORY_DEFINITION_FILE
public static final Pattern LICENSE_DESCRIPTION_PATTERN
protected URL baseURL
protected boolean init
true when invoking
the method load()).public URL getBaseURL()
public void setBaseURL(URL baseURL)
protected URL getDefinitionURL()
public void load()
throws IOException
IOExceptionpublic String[] getLicenseNames()
public License[] getLicenses()
protected boolean checkExists(URL url) throws IOException
IOExceptionprotected void checkInit(String operation)
protected void checkNotInit(String operation)
protected URL getFileURL(License license, String filename) throws IOException
IOExceptionCopyright © 2010–2019 MojoHaus. All rights reserved.