Class AbstractEngine

java.lang.Object
org.apache.creadur.whisker.app.AbstractEngine

public abstract class AbstractEngine extends Object
A pluggable template.
  • 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 null
      writerFactory - not null
      configuration - 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 null
      writerFactory - not null
      configuration - 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 null
      writerFactory - not null
      configuration - 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 null
      writerFactory - not null
      configuration - not null
      Returns:
      this
      Throws:
      Exception - when report creation fails