Package org.apache.creadur.whisker.app
Class AbstractEngine
java.lang.Object
org.apache.creadur.whisker.app.AbstractEngine
A pluggable template.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract AbstractEngine
generate
(org.apache.creadur.whisker.model.Descriptor work, ResultWriterFactory writerFactory, Configuration configuration) Writes legal documents.abstract AbstractEngine
report
(Collection<org.apache.creadur.whisker.scan.Directory> directories, ResultWriterFactory writerFactory, Configuration configuration) Writes a report describing the directories present.abstract AbstractEngine
skeleton
(Collection<org.apache.creadur.whisker.scan.Directory> withBase, ResultWriterFactory writerFactory, Configuration configuration) Writes templates to help create meta-data.abstract AbstractEngine
validate
(LicenseAnalyst analyst, ResultWriterFactory writerFactory, Configuration configuration) Reports validations.
-
Constructor Details
-
AbstractEngine
public AbstractEngine()
-
-
Method Details
-
skeleton
public abstract AbstractEngine skeleton(Collection<org.apache.creadur.whisker.scan.Directory> withBase, ResultWriterFactory writerFactory, Configuration configuration) throws Exception Writes templates to help create meta-data.- Parameters:
withBase
- from this base, not nullwriterFactory
- not nullconfiguration
- not null- Returns:
- this
- Throws:
Exception
- when creation fails
-
validate
public abstract AbstractEngine validate(LicenseAnalyst analyst, ResultWriterFactory writerFactory, Configuration configuration) throws Exception Reports validations.- Parameters:
analyst
- not nullwriterFactory
- not nullconfiguration
- not null- Returns:
- not null
- Throws:
Exception
- when report creation fails
-
report
public abstract AbstractEngine report(Collection<org.apache.creadur.whisker.scan.Directory> directories, ResultWriterFactory writerFactory, Configuration configuration) throws Exception Writes a report describing the directories present.- Parameters:
directories
- not nullwriterFactory
- not nullconfiguration
- not null- Returns:
- this
- Throws:
Exception
- when report creation fails
-
generate
public abstract AbstractEngine generate(org.apache.creadur.whisker.model.Descriptor work, ResultWriterFactory writerFactory, Configuration configuration) throws Exception Writes legal documents.- Parameters:
work
- not nullwriterFactory
- not nullconfiguration
- not null- Returns:
- this
- Throws:
Exception
- when report creation fails
-