public class PathRegEx extends PathPrefixerAvoidResolve
Groups (i.e. parentheses) in the regular expression each form a directory in the output
Constructor and Description |
---|
PathRegEx() |
Modifier and Type | Method and Description |
---|---|
RegEx |
getRegEx()
Regular expression to use to match path with at least one group in it.
|
DirectoryWithPrefix |
outFilePrefixFromPath(NamedPath path,
Path root,
PathPrefixerContext context)
Determines the out-file prefix from a path
|
void |
setRegEx(RegEx regEx)
Regular expression to use to match path with at least one group in it.
|
getPrefix, outFilePrefix, outFilePrefixAvoidResolve, rootDirectoryPrefix, rootDirectoryPrefixAvoidResolve, setPrefix
resolvePath, resolvePath
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public DirectoryWithPrefix outFilePrefixFromPath(NamedPath path, Path root, PathPrefixerContext context) throws PathPrefixerException
PathPrefixerAvoidResolve
outFilePrefixFromPath
in class PathPrefixerAvoidResolve
path
- path to calculate prefix from with associated descriptive-nameroot
- root of prefixcontext
- the path-prefixer context.PathPrefixerException
public RegEx getRegEx()
public void setRegEx(RegEx regEx)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.