Class AnalyserFactory

java.lang.Object
org.apache.rat.analysis.AnalyserFactory

public final class AnalyserFactory extends Object
Creates default analysers.
  • Method Details

    • createPolicy

      public static DocumentAnalyser createPolicy(Predicate<ILicense> approvalPredicate)
      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

      public static DocumentAnalyser createMultiplexer(DocumentAnalyser... analysers)
      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

      public static DocumentAnalyser createConfiguredAnalyser(ReportConfiguration configuration)
      Creates a DocumentAnalyser from the report configuration.
      Parameters:
      configuration - the ReportConfiguration
      Returns:
      A document analyser that uses the provided licenses.