Class IfRelativeToDirectory
Object
org.anchoranalysis.bean.AnchorBean<org.anchoranalysis.io.input.bean.namer.FileNamer>
org.anchoranalysis.io.input.bean.namer.FileNamer
org.anchoranalysis.plugin.io.bean.file.namer.IfRelativeToDirectory
public class IfRelativeToDirectory
extends org.anchoranalysis.io.input.bean.namer.FileNamer
Multiplexes between two namers depending on if the relative-to-directory option is
selected.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description IfRelativeToDirectory() -
Method Summary
Modifier and Type Method Description List<org.anchoranalysis.io.input.file.NamedFile>deriveName(List<File> files, org.anchoranalysis.io.input.file.FileNamerContext context)org.anchoranalysis.io.input.bean.namer.FileNamergetOtherwise()The namer to use if the relative-to-directory option is not selected.org.anchoranalysis.io.input.bean.namer.FileNamergetWhenRelative()The namer to use if the relative-to-directory option is selected.voidsetOtherwise(org.anchoranalysis.io.input.bean.namer.FileNamer otherwise)The namer to use if the relative-to-directory option is not selected.voidsetWhenRelative(org.anchoranalysis.io.input.bean.namer.FileNamer whenRelative)The namer to use if the relative-to-directory option is selected.Methods inherited from class org.anchoranalysis.io.input.bean.namer.FileNamer
deriveName, deriveNameUnique
-
Constructor Details
-
IfRelativeToDirectory
public IfRelativeToDirectory()
-
-
Method Details
-
deriveName
public List<org.anchoranalysis.io.input.file.NamedFile> deriveName(List<File> files, org.anchoranalysis.io.input.file.FileNamerContext context)- Specified by:
deriveNamein classorg.anchoranalysis.io.input.bean.namer.FileNamer
-
getWhenRelative
public org.anchoranalysis.io.input.bean.namer.FileNamer getWhenRelative()The namer to use if the relative-to-directory option is selected. -
setWhenRelative
public void setWhenRelative(org.anchoranalysis.io.input.bean.namer.FileNamer whenRelative)The namer to use if the relative-to-directory option is selected. -
getOtherwise
public org.anchoranalysis.io.input.bean.namer.FileNamer getOtherwise()The namer to use if the relative-to-directory option is not selected. -
setOtherwise
public void setOtherwise(org.anchoranalysis.io.input.bean.namer.FileNamer otherwise)The namer to use if the relative-to-directory option is not selected.
-