Class ExtractIdentifierAndPath<T extends org.anchoranalysis.io.input.InputFromManager>

Object
org.anchoranalysis.bean.AnchorBean<Summarizer<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 Details

  • Method Details

    • extractFrom

      protected Optional<String> extractFrom​(T input)
      Specified by:
      extractFrom in class SummarizerInputFromManager<T extends org.anchoranalysis.io.input.InputFromManager,​String>
    • requiresImageMetadata

      public boolean requiresImageMetadata()
      Description copied from class: Summarizer
      Whether a ImageMetadataInput is required as an input.
      Specified by:
      requiresImageMetadata in class Summarizer<T extends org.anchoranalysis.io.input.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.