public class DefaultPolicy extends Object implements IDocumentAnalyser
Constructor and Description |
---|
DefaultPolicy(Collection<ILicenseFamily> approvedLicenseFamilies)
Constructor with the list of approved license families.
|
Modifier and Type | Method and Description |
---|---|
void |
add(ILicenseFamily approvedLicense)
Adds an ILicenseFamily to the list of approved licenses.
|
void |
analyse(Document document) |
SortedSet<ILicenseFamily> |
getApprovedLicenseFamilies()
Gets an unmodifiable reference to the SortedSet of approved licenses that
this policy is holding.
|
public DefaultPolicy(Collection<ILicenseFamily> approvedLicenseFamilies)
approvedLicenseFamilies
- the approved license families.public void add(ILicenseFamily approvedLicense)
approvedLicense
- license to be approved.public void analyse(Document document)
analyse
in interface IDocumentAnalyser
public SortedSet<ILicenseFamily> getApprovedLicenseFamilies()
Copyright © 2006–2024 Apache Software Foundation. All rights reserved.