Class ExtractIdentifierAndPath<T extends InputFromManager>

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 Details

    • ExtractIdentifierAndPath

      public ExtractIdentifierAndPath()
  • Method Details

    • extractFrom

      protected Optional<String> extractFrom(T input)
      Specified by:
      extractFrom in class SummarizerInputFromManager<T extends 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 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.