Class VelocityReports
java.lang.Object
org.apache.creadur.whisker.out.velocity.VelocityReports
Wraps velocity engine.
-
Constructor Summary
ConstructorsConstructorDescriptionVelocityReports(org.apache.creadur.whisker.app.ResultWriterFactory writerFactory) Constructs a reporter using Apache Velocity. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidgenerate(org.apache.creadur.whisker.model.Descriptor work, org.apache.creadur.whisker.app.Configuration configuration) Reports on work.final voidgenerateTemplate(Collection<org.apache.creadur.whisker.scan.Directory> withBase) Generates template.final voidreport(Collection<org.apache.creadur.whisker.scan.Directory> directories) Generates a directory report.final voidvalidate(org.apache.creadur.whisker.app.analysis.LicenseAnalyst analyst) Reports on analysis.
-
Constructor Details
-
VelocityReports
public VelocityReports(org.apache.creadur.whisker.app.ResultWriterFactory writerFactory) Constructs a reporter using Apache Velocity.- Parameters:
writerFactory- 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 nullconfiguration- 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
-