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 aSetrepresenting the SensitiveInfoResult.booleancontains(SensitiveInfoMatch sensitiveInfo)Check if the analyzed text contained the givenSensitiveInfoMatch.booleancontainsAll(Collection<SensitiveInfoMatch> sensitiveInfo)Check if the analyzed text contained all the givenSensitiveInfoMatch.booleanbooleanbooleanbooleaninthashCode()
-
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- ACollectionofSensitiveInfoMatch.- Returns:
- true if the analyzed text contains all the given
SensitiveInfoMatch.
-
asSet
Return aSetrepresenting the SensitiveInfoResult.- Returns:
- A
Setrepresenting the SensitiveInfoResult.
-
equals
-
hashCode
public int hashCode()
-