Class MatcherBuilderTracker
java.lang.Object
org.apache.rat.configuration.MatcherBuilderTracker
A class to track the Matcher Builders as they are defined. Matchers may be defined in multiple configuration files.
This class tracks them so that they can be referenced across the configuration files.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddBuilder(String className, String name) Adds a builder to the tracker.Collection<Class<? extends AbstractBuilder>> Gets a collection of classes that are recognized as builders.static AbstractBuildergetMatcherBuilder(String name) Get the matching builder for the name.static MatcherBuilderTrackerinstance()Gets the instance of the MatcherBuilderTracker.
-
Method Details
-
instance
Gets the instance of the MatcherBuilderTracker.- Returns:
- the instance of the MatcherBuilderTracker.
-
addBuilder
-
getMatcherBuilder
Get the matching builder for the name.- Parameters:
name- The name of the builder.- Returns:
- the builder for that name. (not null)
-
getClasses
Gets a collection of classes that are recognized as builders.- Returns:
- the collection of builder classes
-