Class FilesProviderWithDirectoryString
- Direct Known Subclasses:
DirectoryDepth,FileSetFromStringSet,SearchDirectory
A
FilesProviderWithDirectory where the directory is optionally specified as a string
constant
If an explicit absolute directory is set then it is used. Otherwise a directory is
inferred by trying in order of priority:
- The directory in which the bean-XML file is located (iff
localized==true) - The input-directory set in the input context
- The current working-directory
If an explicit relative directory it is not normalized (unless
localized==true, in which case it is resolved against the location of the BeanXML).
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionA directory in which to look for files.getDirectoryAsPath(InputContextParameters inputContext) The associated directory with the list of files.booleanWhen true paths are resolved against the location of the associated BeanXML file.voidsetDirectory(String directory) A directory in which to look for files.voidsetLocalized(boolean localized) When true paths are resolved against the location of the associated BeanXML file.Methods inherited from class org.anchoranalysis.io.input.bean.files.FilesProviderWithDirectory
create, getDirectoryAsPathEnsureAbsolute, matchingFilesForDirectory, rootDirectoryMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
FilesProviderWithDirectoryString
public FilesProviderWithDirectoryString()
-
-
Method Details
-
getDirectoryAsPath
Description copied from class:FilesProviderWithDirectoryThe associated directory with the list of files.- Specified by:
getDirectoryAsPathin classFilesProviderWithDirectory- Parameters:
inputContext- the input-context.- Returns:
- the associated directory, as a path.
-
getDirectory
A directory in which to look for files. If set, takes precedence over any other inference of a directory. -
setDirectory
A directory in which to look for files. If set, takes precedence over any other inference of a directory. -
isLocalized
public boolean isLocalized()When true paths are resolved against the location of the associated BeanXML file. -
setLocalized
public void setLocalized(boolean localized) When true paths are resolved against the location of the associated BeanXML file.
-