Class FilterWithRegularExpression
Object
org.anchoranalysis.bean.AnchorBean<CopyFilesNaming<T>>
org.anchoranalysis.plugin.io.bean.file.copy.naming.CopyFilesNaming<org.anchoranalysis.experiment.task.NoSharedState>
org.anchoranalysis.plugin.io.bean.file.copy.naming.CopyFilesNamingWithoutSharedState
org.anchoranalysis.plugin.io.bean.file.copy.naming.CopyFilesNamingOne
org.anchoranalysis.plugin.io.bean.file.copy.naming.RegularExpressionBase
org.anchoranalysis.plugin.io.bean.file.copy.naming.FilterWithRegularExpression
public class FilterWithRegularExpression extends RegularExpressionBase
Rejects files that fail to match a particular regular-expression
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description FilterWithRegularExpression() -
Method Summary
Modifier and Type Method Description protected Optional<Path>destinationPathRelative(Path path, String regex)booleanisInvert()Iff true, then a file is rejected if the regular-expression matches and vice-versa.voidsetInvert(boolean invert)Iff true, then a file is rejected if the regular-expression matches and vice-versa.Methods inherited from class org.anchoranalysis.plugin.io.bean.file.copy.naming.RegularExpressionBase
destinationPathRelative, getRegex, setRegexMethods inherited from class org.anchoranalysis.plugin.io.bean.file.copy.naming.CopyFilesNamingOne
beforeCopying, destinationPathRelative, getCopyFilesNaming, setCopyFilesNamingMethods inherited from class org.anchoranalysis.plugin.io.bean.file.copy.naming.CopyFilesNaming
destinationPath
-
Constructor Details
-
FilterWithRegularExpression
public FilterWithRegularExpression()
-
-
Method Details
-
destinationPathRelative
- Specified by:
destinationPathRelativein classRegularExpressionBase
-
isInvert
public boolean isInvert()Iff true, then a file is rejected if the regular-expression matches and vice-versa.This is the opposite to normal behaviour.
-
setInvert
public void setInvert(boolean invert)Iff true, then a file is rejected if the regular-expression matches and vice-versa.This is the opposite to normal behaviour.
-