public abstract class FilesProviderWithDirectoryUnary extends FilesProviderWithDirectory
FilesProviderWithDirectory
but employs a unary operator on a call to an existing
FilesProviderWithDirectory
.
It is assumed that the associated directory is not altered.
Constructor and Description |
---|
FilesProviderWithDirectoryUnary() |
Modifier and Type | Method and Description |
---|---|
Path |
getDirectoryAsPath(InputContextParameters inputContext)
The associated directory with the list of files.
|
FilesProviderWithDirectory |
getFiles() |
List<File> |
matchingFilesForDirectory(Path directory,
InputManagerParameters parameters)
The matching files for this provider that exist in a particular directory.
|
void |
setFiles(FilesProviderWithDirectory files) |
protected abstract List<File> |
transform(List<File> source)
Transform an existing collection of files.
|
create, getDirectoryAsPathEnsureAbsolute, rootDirectory
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public List<File> matchingFilesForDirectory(Path directory, InputManagerParameters parameters) throws FilesProviderException
FilesProviderWithDirectory
This directory may or may not be searched recursively, depending on implementation.
matchingFilesForDirectory
in class FilesProviderWithDirectory
directory
- the directory.parameters
- parameters passed to an InputManager
to generate input-objects.FilesProviderException
- if the operation is unable to complete successfully.public Path getDirectoryAsPath(InputContextParameters inputContext)
FilesProviderWithDirectory
getDirectoryAsPath
in class FilesProviderWithDirectory
inputContext
- the input-context.protected abstract List<File> transform(List<File> source) throws FilesProviderException
Note that the incoming collection of files may be modified, and can no longer be used in its original form after this method call.
source
- the incoming files (which may be consumed and modified).FilesProviderException
- if unable to complete the transform operation successfully.public FilesProviderWithDirectory getFiles()
public void setFiles(FilesProviderWithDirectory files)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.