Class SingleFile
Provides a single file only.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDirectoryAsPath
(InputContextParameters inputContext) The associated directory with the list of files.getPath()
The path of the single-file.matchingFilesForDirectory
(Path directory, InputManagerParameters parameters) The matching files for this provider that exist in a particular directory.Methods inherited from class org.anchoranalysis.io.input.bean.files.FilesProviderWithDirectory
create, getDirectoryAsPathEnsureAbsolute, rootDirectory
Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
SingleFile
Creates with a path for the single-file.- Parameters:
path
- the path.
-
SingleFile
public SingleFile()
-
-
Method Details
-
matchingFilesForDirectory
Description copied from class:FilesProviderWithDirectory
The matching files for this provider that exist in a particular directory.This directory may or may not be searched recursively, depending on implementation.
- Specified by:
matchingFilesForDirectory
in classFilesProviderWithDirectory
- Parameters:
directory
- the directory.parameters
- parameters passed to anInputManager
to generate input-objects.- Returns:
- a newly created list of matching files.
-
getDirectoryAsPath
Description copied from class:FilesProviderWithDirectory
The associated directory with the list of files.- Specified by:
getDirectoryAsPath
in classFilesProviderWithDirectory
- Parameters:
inputContext
- the input-context.- Returns:
- the associated directory, as a path.
-
getPath
The path of the single-file.
-