Package ai.nightfall.scan.model
Class ExclusionRule
java.lang.Object
ai.nightfall.scan.model.ExclusionRule
An object that describes a regular expression or list of keywords that may be used to disqualify a
candidate finding from triggering a detector match.
-
Constructor Summary
ConstructorsConstructorDescriptionExclusionRule(Regex regex, String matchType) Create an exclusion rule that uses a regular expression to make a disqualification decision.ExclusionRule(WordList wordList, String matchType) Create an exclusion rule that uses a word list to make a disqualification decision. -
Method Summary
Modifier and TypeMethodDescriptionGet the exclusion type.Get the match type.getRegex()Get the regex.Get the word list.
-
Constructor Details
-
ExclusionRule
Create an exclusion rule that uses a regular expression to make a disqualification decision.- Parameters:
regex- the regular expressionmatchType- the match type; valid values are FULL or PARTIAL
-
ExclusionRule
Create an exclusion rule that uses a word list to make a disqualification decision.- Parameters:
wordList- the word listmatchType- the match type; valid values are FULL or PARTIAL
-
-
Method Details
-
getMatchType
Get the match type.- Returns:
- the match type represented by this exclusion rule. Valid values are
PARTIALorFULL.
-
getExclusionType
Get the exclusion type.- Returns:
- the type of this exclusion rule. Valid values are
WORD_LISTorREGEX. The corresponding field in this object must be set according to the value specified here.
-
getRegex
Get the regex.- Returns:
- the regular expression to use to evaluate the exclusion rule
-
getWordList
Get the word list.- Returns:
- the word list to use to evaluate the exclusion rule
-