Class SuppressWithPlainTextCommentFilter.Suppression

  • Enclosing class:
    SuppressWithPlainTextCommentFilter

    private static final class SuppressWithPlainTextCommentFilter.Suppression
    extends java.lang.Object
    The class which represents the suppression.
    • Field Detail

      • eventSourceRegexp

        private final java.util.regex.Pattern eventSourceRegexp
        The regexp which is used to match the event source.
      • eventMessageRegexp

        private final java.util.regex.Pattern eventMessageRegexp
        The regexp which is used to match the event message.
      • eventIdRegexp

        private final java.util.regex.Pattern eventIdRegexp
        The regexp which is used to match the event ID.
      • text

        private final java.lang.String text
        Suppression text.
      • lineNo

        private final int lineNo
        Suppression line.
      • columnNo

        private final int columnNo
        Suppression column number.
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object other)
        Indicates whether some other object is "equal to" this one. Suppression on enumeration is needed so code stays consistent.
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • isMatch

        private boolean isMatch​(AuditEvent event)
        Checks whether the suppression matches the given AuditEvent.
        Parameters:
        event - AuditEvent instance.
        Returns:
        true if the suppression matches AuditEvent.
      • isInScopeOfSuppression

        private boolean isInScopeOfSuppression​(AuditEvent event)
        Checks whether AuditEvent is in the scope of the suppression.
        Parameters:
        event - AuditEvent instance.
        Returns:
        true if AuditEvent is in the scope of the suppression.
      • isCheckMatch

        private boolean isCheckMatch​(AuditEvent event)
        Checks whether AuditEvent source name matches the check format.
        Parameters:
        event - AuditEvent instance.
        Returns:
        true if the AuditEvent source name matches the check format.
      • isIdMatch

        private boolean isIdMatch​(AuditEvent event)
        Checks whether the AuditEvent module ID matches the ID format.
        Parameters:
        event - AuditEvent instance.
        Returns:
        true if the AuditEvent module ID matches the ID format.
      • isMessageMatch

        private boolean isMessageMatch​(AuditEvent event)
        Checks whether the AuditEvent message matches the message format.
        Parameters:
        event - AuditEvent instance.
        Returns:
        true if the AuditEvent message matches the message format.