Package org.apache.rat.configuration
Interface LicenseReader
- All Known Implementing Classes:
XMLConfigurationReader
public interface LicenseReader
An interface describing the methods of a LicenseReader.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addLicenses
(URI uri) Adds a URI to the set of files to be read.Reads the configuration and extracts the list of approved licenses.Reads the configuration and extracts instances of ILicenseFamily.Reads the configuration and extracts instances of ILicense.
-
Method Details
-
addLicenses
Adds a URI to the set of files to be read.- Parameters:
uri
- the URI to read.
-
readLicenses
Reads the configuration and extracts instances of ILicense.- Returns:
- A collection of ILicense.
-
readFamilies
SortedSet<ILicenseFamily> readFamilies()Reads the configuration and extracts instances of ILicenseFamily.- Returns:
- A collection of ILicenseFamily.
-
approvedLicenseId
Reads the configuration and extracts the list of approved licenses.- Returns:
- The list of approved licenses specified in the configuration or an empty list if none specified.
-