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-managerS- 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 Summary
Constructors Constructor Description SummarizerInputFromManager() -
Method Summary
Modifier and Type Method Description voidadd(T element)Adds a element to the summary.Stringdescribe()A string summarizing this item.protected abstract Optional<S>extractFrom(T input)Summarizer<S>getSummarizer()voidsetSummarizer(Summarizer<S> summarizer)Methods inherited from class org.anchoranalysis.plugin.io.bean.summarizer.Summarizer
addAll, requiresImageMetadata
-
Constructor Details
-
SummarizerInputFromManager
public SummarizerInputFromManager()
-
-
Method Details
-
add
Description copied from class:SummarizerAdds a element to the summary.- Specified by:
addin classSummarizer<T extends org.anchoranalysis.io.input.InputFromManager>- Parameters:
element- the element to add.- Throws:
org.anchoranalysis.core.exception.OperationFailedException
-
describe
Description copied from class:SummarizerA string summarizing this item.- Specified by:
describein classSummarizer<T extends org.anchoranalysis.io.input.InputFromManager>- Returns:
- the description.
- Throws:
org.anchoranalysis.core.exception.OperationFailedException
-
extractFrom
-
getSummarizer
-
setSummarizer
-