public abstract class CopyFilesNamingOne extends CopyFilesNamingWithoutSharedState
Constructor and Description |
---|
CopyFilesNamingOne() |
Modifier and Type | Method and Description |
---|---|
NoSharedState |
beforeCopying(Path destinationDirectory,
List<FileWithDirectoryInput> inputs)
To be called once before any calls to
CopyFilesNaming.destinationPath(File,
DirectoryWithPrefix, int, CopyContext) . |
Optional<Path> |
destinationPathRelative(File file,
DirectoryWithPrefix outputTarget,
int iter,
CopyContext<NoSharedState> context)
Calculates the relative-output path (to be appended to destDir)
|
protected abstract Optional<Path> |
destinationPathRelative(Path path) |
CopyFilesNaming<NoSharedState> |
getCopyFilesNaming() |
void |
setCopyFilesNaming(CopyFilesNaming<NoSharedState> copyFilesNaming) |
destinationPath
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public NoSharedState beforeCopying(Path destinationDirectory, List<FileWithDirectoryInput> inputs) throws OperationFailedException
CopyFilesNaming
CopyFilesNaming.destinationPath(File,
DirectoryWithPrefix, int, CopyContext)
.beforeCopying
in class CopyFilesNamingWithoutSharedState
destinationDirectory
- the directory to which files are copied.inputs
- the total number of files to copy.OperationFailedException
public Optional<Path> destinationPathRelative(File file, DirectoryWithPrefix outputTarget, int iter, CopyContext<NoSharedState> context) throws OutputWriteFailedException
CopyFilesNaming
destinationPathRelative
in class CopyFilesNaming<NoSharedState>
file
- file to be copiedoutputTarget
- the directory and prefix associated with the file for outputtingiter
- an increasing sequence of numbers for each file beginning at 0context
- the context for the copyingOutputWriteFailedException
public CopyFilesNaming<NoSharedState> getCopyFilesNaming()
public void setCopyFilesNaming(CopyFilesNaming<NoSharedState> copyFilesNaming)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.