Class Summarizer<T>
- Type Parameters:
T
- type of element to be summarized
- Direct Known Subclasses:
SummarizerAggregate
,SummarizerCount
,SummarizerImageMetadata
,SummarizerInputFromManager
,SummarizerListMultiline
,SummarizerPath
,SummarizerSplitMoreThan
Summarizes a set of elements by outputting a descriptive string.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void
Adds a element to the summary.void
addAll
(Collection<T> elements) Adds the elements to the summary.abstract String
describe()
A string summarizing this item.abstract boolean
Whether aImageMetadataInput
is required as an input.Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
Summarizer
public Summarizer()
-
-
Method Details
-
addAll
Adds the elements to the summary.- Parameters:
elements
- the elements to add.- Throws:
OperationFailedException
-
add
Adds a element to the summary.- Parameters:
element
- the element to add.- Throws:
OperationFailedException
-
describe
A string summarizing this item.- Returns:
- the description.
- Throws:
OperationFailedException
-
requiresImageMetadata
Whether aImageMetadataInput
is required as an input.- Returns:
- true if the summarize requires
ImageMetadataInput
as input, or false if any input is acceptable. - Throws:
OperationFailedException
- if this cannot be established.
-