Class SummarizerInputFromManager<T extends org.anchoranalysis.io.input.InputFromManager,​S>

Object
org.anchoranalysis.bean.AnchorBean<Summarizer<T>>
org.anchoranalysis.plugin.io.bean.summarizer.Summarizer<T>
org.anchoranalysis.plugin.io.bean.summarizer.input.SummarizerInputFromManager<T,​S>
Type Parameters:
T - input-type for input-manager
S - type of entity extracted from input-type for summarization
Direct Known Subclasses:
ExtractIdentifier, ExtractIdentifierAndPath, ExtractPath

public abstract class SummarizerInputFromManager<T extends org.anchoranalysis.io.input.InputFromManager,​S>
extends Summarizer<T>
Extracts a particular item from an InputFromManager for further summarization downstream.

It can be used to (effectively) convert summarization from an InputFromManager to another type.

Author:
Owen Feehan
  • Constructor Details

  • Method Details

    • add

      public void add​(T element) throws org.anchoranalysis.core.exception.OperationFailedException
      Description copied from class: Summarizer
      Adds a element to the summary.
      Specified by:
      add in class Summarizer<T extends org.anchoranalysis.io.input.InputFromManager>
      Parameters:
      element - the element to add.
      Throws:
      org.anchoranalysis.core.exception.OperationFailedException
    • describe

      public String describe() throws org.anchoranalysis.core.exception.OperationFailedException
      Description copied from class: Summarizer
      A string summarizing this item.
      Specified by:
      describe in class Summarizer<T extends org.anchoranalysis.io.input.InputFromManager>
      Returns:
      the description.
      Throws:
      org.anchoranalysis.core.exception.OperationFailedException
    • extractFrom

      protected abstract Optional<S> extractFrom​(T input)
    • getSummarizer

      public Summarizer<S> getSummarizer()
    • setSummarizer

      public void setSummarizer​(Summarizer<S> summarizer)