public class PatternSpan extends FileNamer
The portion used spans from the first variable to the last-variable in the pattern, including any non-variable portions of the file-path.
In the special case that a single file is passed, its filename is extracted without any extension.
Constructor and Description |
---|
PatternSpan() |
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.
|
boolean |
isCaseSensitive()
Iff true, a case sensitive search is used to match patterns.
|
void |
setCaseSensitive(boolean caseSensitive)
Iff true, a case sensitive search is used to match patterns.
|
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 boolean isCaseSensitive()
public void setCaseSensitive(boolean caseSensitive)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.