Class ExtractIdentifierAndPath<T extends InputFromManager>
Object
AnchorBean<Summarizer<T>>
Summarizer<T>
SummarizerInputFromManager<T,String>
ExtractIdentifierAndPath<T>
- Type Parameters:
T
- input-type.
public class ExtractIdentifierAndPath<T extends 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 -
Method Summary
Modifier and TypeMethodDescriptionextractFrom
(T input) int
The maximum width permitted for an identifier, so that it is printed as one line.boolean
Whether aImageMetadataInput
is required as an input.void
setMaxPathWidth
(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
Methods inherited from class org.anchoranalysis.plugin.io.bean.summarizer.Summarizer
addAll
Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
ExtractIdentifierAndPath
public ExtractIdentifierAndPath()
-
-
Method Details
-
extractFrom
- Specified by:
extractFrom
in classSummarizerInputFromManager<T extends InputFromManager,
String>
-
requiresImageMetadata
public boolean requiresImageMetadata()Description copied from class:Summarizer
Whether aImageMetadataInput
is required as an input.- Specified by:
requiresImageMetadata
in classSummarizer<T extends InputFromManager>
- Returns:
- true if the summarize requires
ImageMetadataInput
as 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.
-