Class PathRegEx
Object
org.anchoranalysis.bean.AnchorBean<org.anchoranalysis.io.output.bean.path.prefixer.PathPrefixer>
org.anchoranalysis.io.output.bean.path.prefixer.PathPrefixer
org.anchoranalysis.io.output.bean.path.prefixer.PathPrefixerAvoidResolve
org.anchoranalysis.plugin.io.bean.file.path.prefixer.PathRegEx
public class PathRegEx
extends org.anchoranalysis.io.output.bean.path.prefixer.PathPrefixerAvoidResolve
Matches a regex against incoming file-paths to form a prefix for output
Groups (i.e. parentheses) in the regular expression each form a directory in the output
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description PathRegEx() -
Method Summary
Modifier and Type Method Description org.anchoranalysis.bean.shared.regex.RegExgetRegEx()Regular expression to use to match path with at least one group in it.org.anchoranalysis.io.output.path.prefixer.DirectoryWithPrefixoutFilePrefixFromPath(org.anchoranalysis.io.output.path.prefixer.NamedPath path, Path root, org.anchoranalysis.io.output.path.prefixer.PathPrefixerContext context)voidsetRegEx(org.anchoranalysis.bean.shared.regex.RegEx regEx)Regular expression to use to match path with at least one group in it.Methods inherited from class org.anchoranalysis.io.output.bean.path.prefixer.PathPrefixerAvoidResolve
getPrefix, outFilePrefix, outFilePrefixAvoidResolve, rootDirectoryPrefix, rootDirectoryPrefixAvoidResolve, setPrefixMethods inherited from class org.anchoranalysis.io.output.bean.path.prefixer.PathPrefixer
resolvePath, resolvePath
-
Constructor Details
-
PathRegEx
public PathRegEx()
-
-
Method Details
-
outFilePrefixFromPath
public org.anchoranalysis.io.output.path.prefixer.DirectoryWithPrefix outFilePrefixFromPath(org.anchoranalysis.io.output.path.prefixer.NamedPath path, Path root, org.anchoranalysis.io.output.path.prefixer.PathPrefixerContext context) throws org.anchoranalysis.io.output.path.prefixer.PathPrefixerException- Specified by:
outFilePrefixFromPathin classorg.anchoranalysis.io.output.bean.path.prefixer.PathPrefixerAvoidResolve- Throws:
org.anchoranalysis.io.output.path.prefixer.PathPrefixerException
-
getRegEx
public org.anchoranalysis.bean.shared.regex.RegEx getRegEx()Regular expression to use to match path with at least one group in it. -
setRegEx
public void setRegEx(org.anchoranalysis.bean.shared.regex.RegEx regEx)Regular expression to use to match path with at least one group in it.
-