public abstract class FilePathAppendBase extends AnchorBean<FilePathAppendBase>
Constructor and Description |
---|
FilePathAppendBase() |
Modifier and Type | Method and Description |
---|---|
protected abstract String |
createOutPathString() |
NamedBean<DerivePath> |
createPathDeriver(String rootName,
String regEx)
Creates a (rooted) file-path generator for a rootName and a regEx which matches three groups
The first group should correspond to top-level folder for the project The second group should
correspond to the unique name of the dataset.
|
protected String |
firstPart() |
protected String |
firstPartWithCustomMiddle(String middle) |
protected String |
firstPartWithDataset()
The first-part of the out-path string including the dataset of the current experiment as a folder
|
protected String |
firstPartWithFilename()
The first-part of the out-path string including the file-name of the previous experiment as a folder
|
String |
getDatasetSuffix()
A suffix appended to the dataset name extracted from the reg exp
|
String |
getExperimentType()
A folder identifying the type of experiment (where the outputs are all put in the same
directory
|
String |
getName()
The name of the appended entity
|
int |
getSkipFirstTrim() |
int |
getTrimTrailingDirectory() |
boolean |
isCollapseFilename() |
boolean |
isSkipFileName() |
void |
setCollapseFilename(boolean collapseFilename) |
void |
setDatasetSuffix(String datasetSuffix)
A suffix appended to the dataset name extracted from the reg exp
|
void |
setExperimentType(String experimentType)
A folder identifying the type of experiment (where the outputs are all put in the same
directory
|
void |
setName(String name)
The name of the appended entity
|
void |
setSkipFileName(boolean skipFileName) |
void |
setSkipFirstTrim(int skipFirstTrim) |
void |
setTrimTrailingDirectory(int trimTrailingDirectory) |
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
protected abstract String createOutPathString() throws BeanMisconfiguredException
BeanMisconfiguredException
protected String firstPartWithFilename()
protected String firstPartWithDataset()
protected String firstPart()
public NamedBean<DerivePath> createPathDeriver(String rootName, String regEx) throws BeanMisconfiguredException
rootName
- if non-empty (and non-null) a rooted derivePath is created instead of a non
rootedregEx
- BeanMisconfiguredException
public String getName()
public void setName(String name)
public String getDatasetSuffix()
public void setDatasetSuffix(String datasetSuffix)
public String getExperimentType()
public void setExperimentType(String experimentType)
public int getTrimTrailingDirectory()
public void setTrimTrailingDirectory(int trimTrailingDirectory)
public int getSkipFirstTrim()
public void setSkipFirstTrim(int skipFirstTrim)
public boolean isSkipFileName()
public void setSkipFileName(boolean skipFileName)
public boolean isCollapseFilename()
public void setCollapseFilename(boolean collapseFilename)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.