Package org.apache.rat.analysis
Class AnalyserFactory
java.lang.Object
org.apache.rat.analysis.AnalyserFactory
Creates default analysers.
-
Method Summary
Modifier and TypeMethodDescriptionstatic DocumentAnalyser
createConfiguredAnalyser
(ReportConfiguration configuration) Creates a DocumentAnalyser from the report configuration.static DocumentAnalyser
createMultiplexer
(DocumentAnalyser... analysers) Creates an analyser that calls each of the provided analysers in order.static DocumentAnalyser
createPolicy
(Predicate<ILicense> approvalPredicate) Creates an analyser that adds the approved license predicate to the document metadata.
-
Method Details
-
createPolicy
Creates an analyser that adds the approved license predicate to the document metadata.Note you probably do not want this as it is automatically added to
createConfiguredAnalyser(org.apache.rat.ReportConfiguration)
.- Parameters:
approvalPredicate
- the predicate to approve licenses.- Returns:
- A document analyser that sets the approvalPredicate in document metadata.
-
createMultiplexer
Creates an analyser that calls each of the provided analysers in order.- Parameters:
analysers
- the array of analysers to call.- Returns:
- an analyser that will call all the provided analysers.
-
createConfiguredAnalyser
Creates a DocumentAnalyser from the report configuration.- Parameters:
configuration
- the ReportConfiguration- Returns:
- A document analyser that uses the provided licenses.
-