Package ch.privately.owas.nlp
Class SensitiveInfoResult
java.lang.Object
ch.privately.owas.nlp.SensitiveInfoResult
Result of an analysis by the
SensitiveInfoAnalyzer
.-
Method Summary
Modifier and TypeMethodDescriptionasSet()
Return aSet
representing the SensitiveInfoResult.boolean
contains(SensitiveInfoMatch sensitiveInfo)
Check if the analyzed text contained the givenSensitiveInfoMatch
.boolean
containsAll(Collection<SensitiveInfoMatch> sensitiveInfo)
Check if the analyzed text contained all the givenSensitiveInfoMatch
.boolean
boolean
boolean
boolean
int
hashCode()
-
Method Details
-
containsUkPostcode
public boolean containsUkPostcode()- Returns:
- true if the analyzed text contains a UK postcode.
-
containsUkPhoneNumber
public boolean containsUkPhoneNumber()- Returns:
- true if the analyzed text contains a UK phone number.
-
containsEmailAddress
public boolean containsEmailAddress()- Returns:
- true if the analyzed text contains an email address.
-
contains
Check if the analyzed text contained the givenSensitiveInfoMatch
.- Parameters:
sensitiveInfo
- ASensitiveInfoMatch
.- Returns:
- true if the analyzed text contains the given
SensitiveInfoMatch
-
containsAll
Check if the analyzed text contained all the givenSensitiveInfoMatch
.- Parameters:
sensitiveInfo
- ACollection
ofSensitiveInfoMatch
.- Returns:
- true if the analyzed text contains all the given
SensitiveInfoMatch
.
-
asSet
Return aSet
representing the SensitiveInfoResult.- Returns:
- A
Set
representing the SensitiveInfoResult.
-
equals
-
hashCode
public int hashCode()
-