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 voidAdds a element to the summary.voidaddAll(Collection<T> elements) Adds the elements to the summary.abstract Stringdescribe()A string summarizing this item.abstract booleanWhether aImageMetadataInputis 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 aImageMetadataInputis required as an input.- Returns:
- true if the summarize requires
ImageMetadataInputas input, or false if any input is acceptable. - Throws:
OperationFailedException- if this cannot be established.
-