Class SubsetRangeIfRequested
If specified in the context, the existing name if subsetted according to an index range.
The existing name is split into groups by a deliminator (by default a forward/slash) to provide groups for the subsetting.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionderiveName
(List<File> files, FileNamerContext context) Derives a list of names (associated with each file) for some files.Character used to split the name into groups.getNamer()
The namer that is called to provide names that are subsetted.void
setDelimiter
(String delimiter) Character used to split the name into groups.void
The namer that is called to provide names that are subsetted.Methods inherited from class org.anchoranalysis.io.input.bean.namer.FileNamer
deriveName, deriveNameUnique
Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
SubsetRangeIfRequested
public SubsetRangeIfRequested()
-
-
Method Details
-
deriveName
Description copied from class:FileNamer
Derives a list of names (associated with each file) for some files.- Specified by:
deriveName
in classFileNamer
- Parameters:
files
- the files to describe.context
- additional context for naming.- Returns:
- a list of identical size and order to files, corresponding to the file the extracted name.
-
getNamer
The namer that is called to provide names that are subsetted. -
setNamer
The namer that is called to provide names that are subsetted. -
getDelimiter
Character used to split the name into groups. -
setDelimiter
Character used to split the name into groups.
-