Package org.codehaus.mojo.license.model
Class LicenseRepository
java.lang.Object
org.codehaus.mojo.license.model.LicenseRepository
- Direct Known Subclasses:
RootPackageClassPathLicenseRepository
- Since:
- 1.0
- Author:
- tchemit dev@tchemit.fr
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
checkExists
(URL url) protected void
protected void
checkNotInit
(String operation) protected URL
protected URL
getFileURL
(License license, String filename) getLicense
(String licenseName) protected URL
getLicenseBaseURL
(String licenseName) String[]
License[]
iterator()
void
load()
void
setBaseURL
(URL baseURL) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
REPOSITORY_DEFINITION_FILE
- See Also:
-
LICENSE_DESCRIPTION_PATTERN
-
baseURL
the base url of the licenses repository. -
licenses
licenses of this repository. -
init
protected boolean initflag to known if repository was init (pass totrue
when invoking the methodload()
).
-
-
Constructor Details
-
LicenseRepository
public LicenseRepository()
-
-
Method Details
-
getBaseURL
-
setBaseURL
-
getDefinitionURL
-
getLicenseBaseURL
-
load
- Throws:
IOException
-
getLicenseNames
-
getLicenses
-
getLicense
-
iterator
-
checkExists
- Throws:
IOException
-
checkInit
-
checkNotInit
-
getFileURL
- Throws:
IOException
-