Class CopyFilesNamingOne

Object
AnchorBean<CopyFilesNaming<NoSharedState>>
CopyFilesNaming<NoSharedState>
Direct Known Subclasses:
RegularExpressionBase, RemoveWhitespace

public abstract class CopyFilesNamingOne extends CopyFilesNamingWithoutSharedState
  • Constructor Details

    • CopyFilesNamingOne

      public CopyFilesNamingOne()
  • Method Details

    • beforeCopying

      public NoSharedState beforeCopying(Path destinationDirectory, List<FileWithDirectoryInput> inputs) throws OperationFailedException
      Description copied from class: CopyFilesNaming
      Overrides:
      beforeCopying in class CopyFilesNamingWithoutSharedState
      Parameters:
      destinationDirectory - the directory to which files are copied.
      inputs - the total number of files to copy.
      Throws:
      OperationFailedException
    • destinationPathRelative

      public Optional<Path> destinationPathRelative(File file, DirectoryWithPrefix outputTarget, int iter, CopyContext<NoSharedState> context) throws OutputWriteFailedException
      Description copied from class: CopyFilesNaming
      Calculates the relative-output path (to be appended to destDir)
      Specified by:
      destinationPathRelative in class CopyFilesNaming<NoSharedState>
      Parameters:
      file - file to be copied
      outputTarget - the directory and prefix associated with the file for outputting
      iter - an increasing sequence of numbers for each file beginning at 0
      context - the context for the copying
      Returns:
      the relative-path. if empty, the file should be skipped.
      Throws:
      OutputWriteFailedException
    • destinationPathRelative

      protected abstract Optional<Path> destinationPathRelative(Path path)
    • getCopyFilesNaming

      public CopyFilesNaming<NoSharedState> getCopyFilesNaming()
    • setCopyFilesNaming

      public void setCopyFilesNaming(CopyFilesNaming<NoSharedState> copyFilesNaming)