Package com.deltawalker.script
Interface AlignFilter
- All Superinterfaces:
Filter,FolderFilter
A folder comparison filter that lets files and folders with different names
be matched and compared, using a pair of regular or shell expressions.
Created with
Filters.addAlignFilter(String, String, boolean, boolean, String, String).
By default DeltaWalker aligns files and folders by name: a file named
data.txt on one side is compared with the file named
data.txt on the other side. Sometimes resources with different
names need to be compared, for example data.txt with
data.log. An align filter, also called an alignment override, does
that by matching the two names with two expressions, a primary and a
secondary one. The secondary expression can refer to groups of the primary
expression.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.deltawalker.script.FolderFilter
FolderFilter.Target -
Method Summary
Modifier and TypeMethodDescriptionReturns the folders this filter applies to, as shell expressions separated by the platform path separator -':'on macOS and Linux,';'on Windows.booleanAnswers whether the expressions of this filter match case-sensitively.Returns the secondary expression of this align filter.booleanAnswers whether the patterns/expressions of this filter are regular or shell expressions.Methods inherited from interface com.deltawalker.script.Filter
getDescription, getDisplayExpression, getExpression, isEnabledMethods inherited from interface com.deltawalker.script.FolderFilter
getTarget
-
Method Details
-
getApplyToFolders
String getApplyToFolders()Returns the folders this filter applies to, as shell expressions separated by the platform path separator -':'on macOS and Linux,';'on Windows.- Returns:
- the folders this filter applies to; an empty string when it applies to all folders
-
getCaseSensitive
boolean getCaseSensitive()Answers whether the expressions of this filter match case-sensitively.- Returns:
truewhen matching is case sensitive,falsewhen not.
-
isRegexType
boolean isRegexType()Answers whether the patterns/expressions of this filter are regular or shell expressions.- Specified by:
isRegexTypein interfaceFilter- Returns:
truefor regular expressions,falsefor shell expressions
-
getSecondaryExpression
String getSecondaryExpression()Returns the secondary expression of this align filter. The primary expression is returned byFilter.getExpression().- Returns:
- the secondary expression
-