public class IfRelativeToDirectory extends FileNamer
Constructor and Description |
---|
IfRelativeToDirectory() |
Modifier and Type | Method and Description |
---|---|
List<NamedFile> |
deriveName(List<File> files,
FileNamerContext context)
Derives a list of names (associated with each file) for some files.
|
FileNamer |
getOtherwise()
The namer to use if the relative-to-directory option is not selected.
|
FileNamer |
getWhenRelative()
The namer to use if the relative-to-directory option is selected.
|
void |
setOtherwise(FileNamer otherwise)
The namer to use if the relative-to-directory option is not selected.
|
void |
setWhenRelative(FileNamer whenRelative)
The namer to use if the relative-to-directory option is selected.
|
deriveName, deriveNameUnique
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public List<NamedFile> deriveName(List<File> files, FileNamerContext context)
FileNamer
deriveName
in class FileNamer
files
- the files to describe.context
- additional context for naming.public FileNamer getWhenRelative()
public void setWhenRelative(FileNamer whenRelative)
public FileNamer getOtherwise()
public void setOtherwise(FileNamer otherwise)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.