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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancheckExists(URL url) protected voidprotected voidcheckNotInit(String operation) protected URLprotected URLgetFileURL(License license, String filename) getLicense(String licenseName) protected URLgetLicenseBaseURL(String licenseName) String[]License[]iterator()voidload()voidsetBaseURL(URL baseURL) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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 totruewhen 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
-