Class ExtractIdentifierAndPath<T extends org.anchoranalysis.io.input.InputFromManager>
Object
org.anchoranalysis.bean.AnchorBean<Summarizer<T>>
org.anchoranalysis.plugin.io.bean.summarizer.Summarizer<T>
org.anchoranalysis.plugin.io.bean.summarizer.input.SummarizerInputFromManager<T,String>
org.anchoranalysis.plugin.io.bean.summarizer.input.ExtractIdentifierAndPath<T>
- Type Parameters:
T- input-type.
public class ExtractIdentifierAndPath<T extends org.anchoranalysis.io.input.InputFromManager> extends SummarizerInputFromManager<T,String>
Extracts the identifier and path from an
InputFromManager to summarize further.
They are combined in the form IDENTIFIER -> PATH.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description ExtractIdentifierAndPath() -
Method Summary
Modifier and Type Method Description protected Optional<String>extractFrom(T input)intgetMaxPathWidth()The maximum width permitted for an identifier, so that it is printed as one line.booleanrequiresImageMetadata()Whether aImageMetadataInputis required as an input.voidsetMaxPathWidth(int maxPathWidth)The maximum width permitted for an identifier, so that it is printed as one line.Methods inherited from class org.anchoranalysis.plugin.io.bean.summarizer.input.SummarizerInputFromManager
add, describe, getSummarizer, setSummarizer
-
Constructor Details
-
ExtractIdentifierAndPath
public ExtractIdentifierAndPath()
-
-
Method Details
-
extractFrom
- Specified by:
extractFromin classSummarizerInputFromManager<T extends org.anchoranalysis.io.input.InputFromManager,String>
-
requiresImageMetadata
public boolean requiresImageMetadata()Description copied from class:SummarizerWhether aImageMetadataInputis required as an input.- Specified by:
requiresImageMetadatain classSummarizer<T extends org.anchoranalysis.io.input.InputFromManager>- Returns:
- true if the summarize requires
ImageMetadataInputas input, or false if any input is acceptable.
-
getMaxPathWidth
public int getMaxPathWidth()The maximum width permitted for an identifier, so that it is printed as one line. Otherwise it is printed as two lines. -
setMaxPathWidth
public void setMaxPathWidth(int maxPathWidth)The maximum width permitted for an identifier, so that it is printed as one line. Otherwise it is printed as two lines.
-