Class SensitiveInfoResult

java.lang.Object
ch.privately.owas.nlp.SensitiveInfoResult

public class SensitiveInfoResult extends Object
Result of an analysis by the SensitiveInfoAnalyzer.
  • 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

      public boolean contains(SensitiveInfoMatch sensitiveInfo)
      Check if the analyzed text contained the given SensitiveInfoMatch.
      Parameters:
      sensitiveInfo - A SensitiveInfoMatch.
      Returns:
      true if the analyzed text contains the given SensitiveInfoMatch
    • containsAll

      public boolean containsAll(Collection<SensitiveInfoMatch> sensitiveInfo)
      Check if the analyzed text contained all the given SensitiveInfoMatch.
      Parameters:
      sensitiveInfo - A Collection of SensitiveInfoMatch.
      Returns:
      true if the analyzed text contains all the given SensitiveInfoMatch.
    • asSet

      public Set<SensitiveInfoMatch> asSet()
      Return a Set representing the SensitiveInfoResult.
      Returns:
      A Set representing the SensitiveInfoResult.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object