Class BazaarIgnoreBuilder
java.lang.Object
org.apache.rat.config.exclusion.fileProcessors.AbstractFileProcessorBuilder
org.apache.rat.config.exclusion.fileProcessors.BazaarIgnoreBuilder
A processor for
.bzrignore files.-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractFileProcessorBuilder
AbstractFileProcessorBuilder.LevelBuilder -
Field Summary
Fields inherited from class AbstractFileProcessorBuilder
commentFilter, fileName, REGEX_FMT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmodifyEntry(Consumer<MatcherSet> matcherSetConsumer, DocumentName baseName, String entry) Allows modification of the file entry to match theMatchPatternformat.Methods inherited from class AbstractFileProcessorBuilder
build, getLevelBuilder, listFiles, process
-
Constructor Details
-
BazaarIgnoreBuilder
public BazaarIgnoreBuilder()Constructor.
-
-
Method Details
-
modifyEntry
public Optional<String> modifyEntry(Consumer<MatcherSet> matcherSetConsumer, DocumentName baseName, String entry) Description copied from class:AbstractFileProcessorBuilderAllows modification of the file entry to match theMatchPatternformat. Default implementation returns the @{code entry} argument.- Overrides:
modifyEntryin classAbstractFileProcessorBuilder- Parameters:
baseName- the name of the document that the file was read from.entry- the entry from that document.- Returns:
- the modified string or an empty Optional to skip the string.
-