Package nl.basjes.parse.useragent.config
Class AnalyzerConfig.AnalyzerConfigBuilder
- java.lang.Object
-
- nl.basjes.parse.useragent.config.AnalyzerConfig.AnalyzerConfigBuilder
-
- Enclosing class:
- AnalyzerConfig
public static class AnalyzerConfig.AnalyzerConfigBuilder extends Object
-
-
Constructor Summary
Constructors Constructor Description AnalyzerConfigBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMatcherConfigs(String filename, MatcherConfig matcherConfig)
void
addTestCase(TestCase testCase)
AnalyzerConfig
build()
void
clearAllTestCases()
void
putLookup(String name, Map<String,String> values)
Store the keys and values.void
putLookupMerges(String name, Set<String> lookupNames)
Store the additional lookups that need to be merged in with a lookupvoid
putLookupSet(String name, Set<String> values)
Store the keys and values.void
putLookupSetsMerges(String name, Set<String> setNames)
Store the additional lookupSets that need to be merged in with a lookupSet
-
-
-
Method Detail
-
addMatcherConfigs
public void addMatcherConfigs(String filename, MatcherConfig matcherConfig)
-
putLookup
public void putLookup(String name, Map<String,String> values)
Store the keys and values.- Parameters:
name
- The name of the lookupvalues
- The additional keys and values for this lookup.
-
putLookupMerges
public void putLookupMerges(String name, Set<String> lookupNames)
Store the additional lookups that need to be merged in with a lookup- Parameters:
name
- The name of the lookuplookupNames
- The names of the lookups that must be added to the specified lookup.
-
putLookupSet
public void putLookupSet(String name, Set<String> values)
Store the keys and values.- Parameters:
name
- The name of the lookupSetvalues
- The additional keys and values for this lookup.
-
putLookupSetsMerges
public void putLookupSetsMerges(String name, Set<String> setNames)
Store the additional lookupSets that need to be merged in with a lookupSet- Parameters:
name
- The name of the lookupSetsetNames
- The names of the lookupSets that must be added to the specified lookupSet.
-
clearAllTestCases
public void clearAllTestCases()
-
addTestCase
public void addTestCase(TestCase testCase)
-
build
public AnalyzerConfig build()
-
-