Class VelocityReports

java.lang.Object
org.apache.creadur.whisker.out.velocity.VelocityReports

public class VelocityReports extends Object
Wraps velocity engine.
  • Constructor Summary

    Constructors
    Constructor
    Description
    VelocityReports(org.apache.creadur.whisker.app.ResultWriterFactory writerFactory, org.apache.commons.logging.Log log)
    Constructs a reporter using Apache Velocity.
  • Method Summary

    Modifier and Type
    Method
    Description
    final void
    generate(org.apache.creadur.whisker.model.Descriptor work, org.apache.creadur.whisker.app.Configuration configuration)
    Reports on work.
    final void
    generateTemplate(Collection<org.apache.creadur.whisker.scan.Directory> withBase)
    Generates template.
    final void
    report(Collection<org.apache.creadur.whisker.scan.Directory> directories)
    Generates a directory report.
    final void
    validate(org.apache.creadur.whisker.app.analysis.LicenseAnalyst analyst)
    Reports on analysis.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • VelocityReports

      public VelocityReports(org.apache.creadur.whisker.app.ResultWriterFactory writerFactory, org.apache.commons.logging.Log log)
      Constructs a reporter using Apache Velocity.
      Parameters:
      writerFactory - not null
      log - not null
  • Method Details

    • generate

      public final void generate(org.apache.creadur.whisker.model.Descriptor work, org.apache.creadur.whisker.app.Configuration configuration) throws Exception
      Reports on work.
      Parameters:
      work - not null
      configuration - not null
      Throws:
      Exception - when generation fails
    • report

      public final void report(Collection<org.apache.creadur.whisker.scan.Directory> directories) throws Exception
      Generates a directory report.
      Parameters:
      directories - not null
      Throws:
      Exception - when reporting fails
    • validate

      public final void validate(org.apache.creadur.whisker.app.analysis.LicenseAnalyst analyst) throws Exception
      Reports on analysis.
      Parameters:
      analyst - not null
      Throws:
      Exception - when validation fails
    • generateTemplate

      public final void generateTemplate(Collection<org.apache.creadur.whisker.scan.Directory> withBase) throws Exception
      Generates template.
      Parameters:
      withBase - not null
      Throws:
      Exception - when generation fails