org.codehaus.mojo.license.model
Class LicenseRepository
java.lang.Object
org.codehaus.mojo.license.model.LicenseRepository
- All Implemented Interfaces:
- Iterable<License>
public class LicenseRepository
- extends Object
- implements Iterable<License>
- Since:
- 1.0
- Author:
- tchemit
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
REPOSITORY_DEFINITION_FILE
public static final String REPOSITORY_DEFINITION_FILE
- See Also:
- Constant Field Values
LICENSE_DESCRIPTION_PATTERN
public static final Pattern LICENSE_DESCRIPTION_PATTERN
baseURL
protected URL baseURL
- the base url of the licenses repository
licenses
protected List<License> licenses
- licenses of this repository
init
protected boolean init
- flag to known if repository was init (pass to
true
when invoking
the method load()
).
LicenseRepository
public LicenseRepository()
getBaseURL
public URL getBaseURL()
setBaseURL
public void setBaseURL(URL baseURL)
load
public void load()
throws IOException
- Throws:
IOException
getLicenseNames
public String[] getLicenseNames()
getLicenses
public License[] getLicenses()
getLicense
public License getLicense(String licenseName)
iterator
public Iterator<License> iterator()
- Specified by:
iterator
in interface Iterable<License>
checkExists
protected boolean checkExists(URL url)
throws IOException
- Throws:
IOException
checkInit
protected void checkInit(String operation)
throws IllegalStateException
- Throws:
IllegalStateException
checkNotInit
protected void checkNotInit(String operation)
throws IllegalStateException
- Throws:
IllegalStateException
Copyright © 2010-2012 The Kuali Foundation. All Rights Reserved.